You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Import cycle with type aliasing causes invalid "Invalid type" #5275
# a.pyi
from b import Parameter
class _ParamType:
p: Parameter
_ConvertibleType = _ParamType
def convert_type(ty: _ConvertibleType):
...
# b.pyi
from a import _ConvertibleType
class Parameter:
type: _ConvertibleType # error: Invalid type "a._ConvertibleType
Activity
emmatyping commentedon Jun 26, 2018
Okay I have a minimal repro:
running
mypy a.pyi(0.610 and master).ilevkivskyi commentedon Jun 26, 2018
Great! It is much easier to fix when there is a repro. I raise priority to high since the problems with import cycles can be quite annoying.
Update imported Vars in the third pass (#5635)