Closed
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"