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
The case wasn't properly handled before when accessing through a type
object -- the type of the forward reference defaulted to `Any`.
The fix doesn't work at module top level since module top levels can't
be deferred, but the reference would generally fail at runtime anyway.
Fixes#4485.
The case wasn't properly handled before when accessing through a type
object -- the type of the forward reference defaulted to `Any`.
The fix doesn't work at module top level since module top levels can't
be deferred, but the reference would generally fail at runtime anyway.
Fixes#4485.
The case wasn't properly handled before when accessing through a type
object -- the type of the forward reference defaulted to `Any`.
The fix doesn't work at module top level since module top levels can't
be deferred, but the reference would generally fail at runtime anyway.
Fixespython#4485.
In the program below, the type inferred for
cls.g
inA.f
isAny
, even though it should bedef (x: builtins.str)
:This works correctly when the decorated method is accessed using an instance type (such as
self
).In fine-grained incremental mode the types can be more precise, which can result in additional errors in fine-grained incremental mode.
The text was updated successfully, but these errors were encountered: