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
I did not dive into the issue but this can still help, so here is what happens:
I use tox to run black, mypy and unittest.
I have dataclasses with several arguments. One of the arguments was commented and was named type, such as:
@dataclassclassA:
first: int# type: int
Even though it was commented out, I have the following error message:
error: cannot format ..../.../: cannot use --safe with this file; failed to parse source file AST: expected an indented block after class definition on line 190 (, line 191)
This could be caused by running Black with an older Python version that does not support new syntax used in your source file.
Oh no! 💥 💔 💥
I am not sure it is the intended behaviour. If it is, please disregard this issue.
The text was updated successfully, but these errors were encountered:
Hello,
I did not dive into the issue but this can still help, so here is what happens:
I use tox to run black, mypy and unittest.
I have dataclasses with several arguments. One of the arguments was commented and was named
type
, such as:Even though it was commented out, I have the following error message:
error: cannot format ..../.../: cannot use --safe with this file; failed to parse source file AST: expected an indented block after class definition on line 190 (, line 191)
This could be caused by running Black with an older Python version that does not support new syntax used in your source file.
Oh no! 💥 💔 💥
I am not sure it is the intended behaviour. If it is, please disregard this issue.
The text was updated successfully, but these errors were encountered: