Skip to content

Apply soft word wrap also to notes when using --pretty #7453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ilevkivskyi opened this issue Sep 3, 2019 · 0 comments
Open

Apply soft word wrap also to notes when using --pretty #7453

ilevkivskyi opened this issue Sep 3, 2019 · 0 comments

Comments

@ilevkivskyi
Copy link
Member

We only wrap errors, not notes with --pretty. Notes require special care because they contain function signatures (e.g. for overloads and protocols). It would be great to also nicely fit them to terminal width, for example:

        def [T <: SomeBound] meth(self, one_argument: T, other_argument: T) -> List[T]: ...

may become

        def [T <: SomeBound] meth(self,
                                  one_argument: T,
                                  other_argument: T) -> List[T]: ...

This is a follow-up for #7440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant