We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A clear and concise description of what the bug is.
Black won't format my file, and the error message said to report it.
To Reproduce Steps to reproduce the behavior:
class Orientation(enum.IntEnum): North = 0 East = 1 South = 2 West = 3 def as_coords(self) -> Point: # fmt: off return Point(*{ Orientation.North: ( 0, 1), Orientation.East: ( 1, 0), Orientation.South: ( 0, -1), Orientation.West: (-1, 0), }[self]) @staticmethod def from_char(c: str) -> 'Orientation': pass
Does this bug also happen on master? To answer this, you have two options:
Yes, playground link
Additional context Add any other context about the problem here.
Nothing to add, just wanted to say that I love this tool!
The text was updated successfully, but these errors were encountered:
Another case of #569.
I recommend you add fmt: on after the }[self]) line so you don't get bit by a pretty bad indentation bug when fmt: off applies after the end of scope.
fmt: on
}[self])
fmt: off
Thank you! Also thanks for submitting this bug report!
Sorry, something went wrong.
No branches or pull requests
Describe the bug A clear and concise description of what the bug is.
Black won't format my file, and the error message said to report it.
To Reproduce Steps to reproduce the behavior:
Does this bug also happen on master? To answer this, you have two options:
Yes, playground link
Additional context Add any other context about the problem here.
Nothing to add, just wanted to say that I love this tool!
The text was updated successfully, but these errors were encountered: