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
It is clear that, when g(x) is called, x is an int, because None is already excluded.
Unfortunately, we have the following error:
demo.py: note: In function "f":
demo.py:7:11:7:11: error: Argument 1 to "g" has incompatible type "int | None"; expected "int" [arg-type]
g(x)
^
Found 1 error in 1 file (checked 1 source file)
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
Consider the following code:
It is clear that, when
g(x)
is called,x
is anint
, because None is already excluded.Unfortunately, we have the following error:
Your Environment
pyproject.toml
:The text was updated successfully, but these errors were encountered: