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
We often use a construct like -> int | Any when we want to say -> int | None, but can't for some reason. I'd like to propose a new type alias MaybeNone: TypeAlias = Any to _typeshed (name subject to discussion) to mark such occurrences. This would help document the reason Any is used and could help us if something like python/typing#566 is ever implemented.
The text was updated successfully, but these errors were encountered:
We often use a construct like
-> int | Any
when we want to say-> int | None
, but can't for some reason. I'd like to propose a new type aliasMaybeNone: TypeAlias = Any
to_typeshed
(name subject to discussion) to mark such occurrences. This would help document the reasonAny
is used and could help us if something like python/typing#566 is ever implemented.The text was updated successfully, but these errors were encountered: