Skip to content
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

Enforce compatible __init__ in structural subtypes #3823

Open
ilevkivskyi opened this issue Aug 12, 2017 · 1 comment
Open

Enforce compatible __init__ in structural subtypes #3823

ilevkivskyi opened this issue Aug 12, 2017 · 1 comment

Comments

@ilevkivskyi
Copy link
Member

Currently, __init__ methods can be incompatible in nominal subclasses. However, it makes sense to check that the __init__ has a correct signature in structural subtypes if the protocol has an explicitly declared __init__. It would be in particular good to check this for types like Type[t].

@ilevkivskyi
Copy link
Member Author

This is a follow-up of #3132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants