Add some type annotations, dataclasses, etc. to Console (#9884)
Add some type annotations, dataclasses, etc. to Console (#9884)

Add some type annotations in `console.py`, and make `NativeWriter` a dataclass, 
pantsbuild/pants,benjyw/pants,benjyw/pants,benjyw/pants,jsirois/pants,pantsbuild/pants,benjyw/pants,pantsbuild/pants,pantsbuild/pants,benjyw/pants,benjyw/pants,pantsbuild/pants,jsirois/pants,jsirois/pants,pantsbuild/pants,pantsbuild/pants,benjyw/pants