You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
The line formatter handles the spacing of = inside of a function declaration with a type hint by looking two tokens behind the = to see if there's a colon. This works for simple declarations like def foo(a: str = "bar"), but does not work for more complicated types such as def foo(a: Union[int, str] = "bar").
A more correct method would be to look for a colon anywhere behind the = until reaching a ( or ,.
The line formatter handles the spacing of
=inside of a function declaration with a type hint by looking two tokens behind the=to see if there's a colon. This works for simple declarations likedef foo(a: str = "bar"), but does not work for more complicated types such asdef foo(a: Union[int, str] = "bar").A more correct method would be to look for a colon anywhere behind the
=until reaching a(or,.