KEMBAR78
Fix __init_subclass__ type check by ilevkivskyi · Pull Request #7723 · python/mypy · GitHub
Skip to content

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.

@ilevkivskyi ilevkivskyi requested a review from msullivan October 16, 2019 13:35
@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