-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Formatter: make long functions in type annotations easier to read #2988
Comments
I'm not so sure about this one- I don't find it any easier to read. Could it be this is what you are familiar with rather than it being better? Would this also apply to let and use and other annotations rather than just functions? Currently we are consistent everywhere with this formatting. Interested in hearing what others have to say. |
I find with the proposed change that the function type is more "together" as you would expect to see it if it were on its own. I don't think it's a huge difference, but I do find the extra whitespace makes it a bit easier to read the whole function type. |
In the following function, I find it hard to read the type for
get_visitor
, especially thatget_visitor
is a function.My suggestion:
The text was updated successfully, but these errors were encountered: