-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
ModelBuilderSemantics Subclassing #70
Comments
Python 3.7 is recent, and the semantics of metaclasses may have changed to better support typing. This case should be added as a unit test. |
This isn't just broken in 3.7. |
@apalala What's supposed to happen if there are multiple base classes?
Is B a subclass of C now, and A a subclass of B? |
TasSu currently doesn't check that the inheritance tree makes sense. I guess the Python compiler will err if the generated Python is no good. |
This triggers an exception: https://pastebin.com/raw/qMUUXEKb
It works when you remove
left:expression
in addition and subtractionI'm not sure how this feature is supposed to work in the first place, how does it decide what to put on the base class and what on the inherited one? I suppose the workaround would be to create the base class manually and pass it to the
ModelBuilderSemantics
instance.In either case, this should be documented better.
The text was updated successfully, but these errors were encountered: