-
Notifications
You must be signed in to change notification settings - Fork 526
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
Unsupported class decorator #110
Comments
Codon does not yet support class decorators and metaclasses (with some very limited exceptions; e.g., No ETA is available at the moment as it's not a trivial fix. If there's a widespread interest in this feature, however, we'll prioritize it. |
Sounds good! I think I'm probably not alone in my love of class decorators, they let you do some nice Pythonic things. Totally understand that they're probably hell to fit into a static typing system, though. Metaclasses are a little beyond where I've ever needed to go, so if there's a happy medium, you'd definitely cover my use case. Thanks for your work on this project! |
This fails for me for dataclass. This seems to be unintended? P.S: I think @Final, and generally custom decorators (with @Wrap, or renamed ones, like I like to implement a tagged union, and hope that would be supported by Codon. 😢 |
Please see #606 to track the implementation progress. |
Saw this project on HN and wanted to try it out! In my application there's a class used to keep track of other eligible classes using a decorator. This is great for automatically adding new functionality by just plopping a decorator onto a class, but it's not supported.
Using codon 0.15.2
Here's a minimal example:
a.py
When run, I get the following output:
I ran this from WSL Debian, but that hopefully shouldn't matter. Let me know if you need any other information
The text was updated successfully, but these errors were encountered: