Skip to content

Commit

Permalink
Add a Mypy ignore for backwards compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Mar 16, 2024
1 parent 167fb9e commit 30f85ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darker/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from black.parsing import ASTSafetyError # pylint: disable=ungrouped-imports
except ImportError:
# Black 24.2.0 and earlier
ASTSafetyError = AssertionError
ASTSafetyError = AssertionError # type: ignore[assignment,misc]


class NotEquivalentError(Exception):
Expand Down

0 comments on commit 30f85ae

Please sign in to comment.