basedmypy
basedmypy copied to clipboard
Type usage other than constructor should not show `Any` errors from constructor
class B:
def __init__(self, foo: Untyped): ...
@staticmethod
def bar(): ...
B.bar() # error: Expression type contains "Any" (has type "type[B]") [no-any-expr]
Despite the fact that Bs constructor contains Any, it's not being used here.