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 has been archived by the owner on Jan 2, 2023. It is now read-only.
The error tells everything, inside format_signature black is used and it cannot understand <Classname...> because that's not valid python code.
I've found two workarounds but they are both suboptimal. The first is to use None in the default value instead, and the second, to change the enum __repr__/__str__.
Is there another way to get around this error? I can try drafting a PR if you think this is easily solvable.
The text was updated successfully, but these errors were encountered:
Could you provide a minimal example to reproduce this bug and give the full stacktrace? The example would then be integrated in the unit tests and it would make it easier to understand where the bug comes from. Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When having an enum as a default parameter in any function, the following error occurs:
The error tells everything, inside
format_signature
black is used and it cannot understand<Classname...>
because that's not valid python code.I've found two workarounds but they are both suboptimal. The first is to use
None
in the default value instead, and the second, to change the enum__repr__
/__str__
.Is there another way to get around this error? I can try drafting a PR if you think this is easily solvable.
The text was updated successfully, but these errors were encountered: