-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
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
Hybrid behavior doesn't work when maybe_cls=None and no annotations #673
Labels
Comments
Ah yikes it’s about the |
This seems to work but is not fully tested:
Edit: Fixed the code a bit. |
euresti
changed the title
Hybrid behavior doesn't work.
Hybrid behavior doesn't work when maybe_cls is None and no annotations
Aug 23, 2020
euresti
changed the title
Hybrid behavior doesn't work when maybe_cls is None and no annotations
Hybrid behavior doesn't work when maybe_cls=None and no annotations
Aug 23, 2020
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The doc says:
Sadly it doesn't exactly work.
The code does this:
But do_it itself won't raise
UnannotatedAttributeError
until the decorator is applied to the class.The text was updated successfully, but these errors were encountered: