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
Moving the None overload to be the first item works around the issue, but I'm not sure yet if that will cause other trouble. If not, changing the builtins stubs is a potential workaround.
The text was updated successfully, but these errors were encountered:
Invalid type is inferred for this fragment when using
-2 --no-strict-optional
:The inferred type used to be
Any
in v0.610, so this is a regression.List[int]
would be the most precise type.Here is a more self-contained example that repros the issue (also in Python 3 mode, but strict optional must be disabled):
Moving the None overload to be the first item works around the issue, but I'm not sure yet if that will cause other trouble. If not, changing the builtins stubs is a potential workaround.
The text was updated successfully, but these errors were encountered: