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
Using Undefined should only be valid as an initializer in an assignment statement (but not as a subexpression of an initializer). These should be disallowed:
if x is Undefined: ...
y = [Undefined] # type: ...
def f(a: int = Undefined) -> int: ...
Using
Undefined
should only be valid as an initializer in an assignment statement (but not as a subexpression of an initializer). These should be disallowed:These should still be fine:
Not sure about this one:
Currently
Undefined
can be used as an expression.See also python/typing#20 (comment).
The text was updated successfully, but these errors were encountered: