Check keyword arguments in class definitions #2653
Labels
feature
priority-2-low
topic-metaclasses
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
Currently, this incorrect code passes mypy:
It should check that
__new__
/__init_subclass__
accepts these keyword arguments.This doesn't seem high-priority to fix since custom class kwargs are rarely used and this should usually cause import-time errors anyway when running the code, but I'm reporting it so it can be tracked.
The text was updated successfully, but these errors were encountered: