[Python-ideas] PEP 8 update on line length
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 19 16:37:19 EST 2019
Samuel Colvin wrote:
> def resolve_annotations(*, raw_annotations: Dict[str, Type[Any]], module_name: Optional[str]) -> Dict[str, Type[Any]]:
>
> I don't see how anyone can say that would be more
> readable with a 80 character line limit.
I would argue that it *is* more readable if it's not all on one line:
def resolve_annotations(*,
raw_annotations: Dict[str, Type[Any]],
module_name: Optional[str])
-> Dict[str, Type[Any]]:
Having thus improved its readability, an 80-char line limit is no
longer a problem.
--
Greg
More information about the Python-ideas
mailing list