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
simplegeneric => singledispatch: backward compatibility #62
Comments
I ran into the same issue when I tried running Gaphor with the Gaphas-master. I haven't sorted out a nice way to do it. I agree that monkey-patching should not be the way to go, but in order to not break the interface, |
I added a small compatibility layer in adf3bdc. |
Cool! And a clean solution 👍 |
|
I think that's easy to update. I did not dig that deep into the BTW. The |
Thank you! |
With the change from
simplegeneric
tosingledispatch
,gaphas
is no longer backward compatible with code that registers custom types, as you now need to callregister
instead ofwhen_type
.This is fine, as you increase the minor version.
I was just wondering, whether you think there is an easy way for other software not requiring any code changes. Maybe somehow monkeypatching
singledispatch
? Doesn't sound like the best solution :-DThe text was updated successfully, but these errors were encountered: