-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
Description
Currently we don't handle __call__() on metaclasses correctly. For example:
class M(type):
def __call__(self, x: int) -> Any: ...
class C(metaclass=M): ...
C(x=1)results in a false positive. Also similarly handling of metaclass __call__() in protocols is not very principled, see e.g. #14121
connorbrinton, pjbull, ippeiukai, jmarshall, gschaffner and 5 more