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
ExpressionChecker.infer_function_type_arguments decides for id(square), via ExpressionChecker.get_arg_infer_passes, that the function argument type should be resolved in the second pass. Or something along those lines. It then proceeds to use None as argument type, which "type" propagates via return value until the embedded argument type gets compared against int for the 1.
It's not immediately clear to me, looking at this code, why it shouldn't iteratively infer types until a fixed point is reached.
the internal representation of the type of g seems to be "def ('None') -> builtins.int*" which isn't valid.
The text was updated successfully, but these errors were encountered: