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

Fix __init_subclass__ type check #7723

Merged
merged 1 commit into from Oct 16, 2019

Conversation

ilevkivskyi
Copy link
Member

Fixes #7722

This skips checking class keywords against __init_subclass__ for:

  • Classes with custom metaclasses, because they can pop the keywords before calling super().
  • Classes that are special forms, like TypedDict etc.

@msullivan
Copy link
Collaborator

Yeah, good catch. This will get cherry picked.

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.

Regression: false positive when creating a TypedDict with total=False
2 participants