Skip to content

stubtest: improve handling of special dunders #9626

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

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

hauntsaninja
Copy link
Collaborator

Reckon with the fact that init_subclass and class_getitem are
special cased to be implicit classmethods. Note this probably doesn't
fix cases where you overload, but don't mark as classmethods.
Fix some false negatives for other special dunders.

Reckon with the fact that __init_subclass__ and __class_getitem__ are
special cased to be implicit classmethods.
Fix some false negatives for other special dunders.
hauntsaninja pushed a commit to hauntsaninja/typeshed that referenced this pull request Oct 22, 2020
python/mypy#9626 will make stubtest a little bit
stricter about positional-only arguments for dunders like __init__
hauntsaninja pushed a commit to hauntsaninja/typeshed that referenced this pull request Oct 22, 2020
python/mypy#9626 will make stubtest a little bit
stricter about positional-only arguments for dunders like __init__
srittau pushed a commit to python/typeshed that referenced this pull request Oct 22, 2020
python/mypy#9626 will make stubtest a little bit
stricter about positional-only arguments for dunders like __init__

Co-authored-by: hauntsaninja <>
@hauntsaninja hauntsaninja merged commit af3c8be into python:master Oct 22, 2020
@hauntsaninja hauntsaninja deleted the stspcd branch October 22, 2020 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant