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
bar: Callable[[], None]
foo: FunctionType[[], None] =bar
Incompatible types in assignment (expression has type "() -> None", variable has type "def () -> None")
the situation with these types is already confusing enough, and this error message just adds to the confusion. it should just show the type names as they are defined:
Incompatible types in assignment (expression has type "Callable[[], None]", variable has type "FunctionType[[], None]")
or if you wanna keep the based syntax:
Incompatible types in assignment (expression has type "Callable[() -> None]", variable has type "FunctionType[() -> None]")
The text was updated successfully, but these errors were encountered:
the situation with these types is already confusing enough, and this error message just adds to the confusion. it should just show the type names as they are defined:
or if you wanna keep the based syntax:
The text was updated successfully, but these errors were encountered: