-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
featurepriority-2-lowtopic-metaclassestopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctly
Description
Currently, this incorrect code passes mypy:
class C(a=3):
pass
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.
Metadata
Metadata
Assignees
Labels
featurepriority-2-lowtopic-metaclassestopic-runtime-semanticsmypy doesn't model runtime semantics correctlymypy doesn't model runtime semantics correctly