Open
Description
Consider the following valid Python 3 code:
class A():
pass
class B():
def __init__(self):
self.a = A
b = B()
class C(b.a):
pass
Actual behavior:
Mypy will report Name 'b.a' is not defined
on the line class C(b.a):
.
Expected behavior:
No error reported by Mypy.
Python version: 3.8.2
Mypy version: 0.770 (master not checked)
Flags: no flags