-
Notifications
You must be signed in to change notification settings - Fork 17
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
Vmux signal types #188
base: main
Are you sure you want to change the base?
Vmux signal types #188
Conversation
Obviously we need to get #184 landed, but if this works, we should get this merged too! Then the churn on existing scripts only has to happen once. For testing, it is hopefully pretty easy to setup some definitions that match the existing "old" style definitions and then compare the resulting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty wary of the details of __class_getitem__
breaking. But this is all pretty non-invasive if we don't actually use it in scripts. So I think it is low risk to just go ahead with this.
Big thing we need is some tests that show a virtual mux defined this way ends up with the same _signal_map
as the original method.
Pretty sure that big long class name comes from the call to Now that @daniel-montanari has done the hard work to make both the sub-class and the type alias version work, we should just decide that you need to subclass and be done with it. Then all the complexity goes away at the expense of a slightly more verbose definition. |
Given up on support for 3.8. |
I hope the deploy failing is because my code breaks on 3.8 and not actually because it couldn't install Node.js |
You can drop the other python versions from CI test matrix on this branch if you want. |
Yep was code not working due to python versions not anything to do with the build process. |
Builds on top of #184 to address #187
Rough draft, there are some nuances between 3.8 and 3.10+ due to reworks of the typing library although none of them are gamechangers.
Can keep adding to this if people like this idea.