-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Seeing a couple of different errors with virtual subclasses:
from abc import ABCMeta
class M(metaclass=ABCMeta):
pass
class A:
pass
M.register(A) # error: "M" has no attribute "register"
def test(obj: M):
pass
obj = A()
test(obj) # error: Argument 1 to "test" has incompatible type "A"; expected "M"Reactions are currently unavailable