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
PEP 604 introduces a new Union syntax in Python 3.10+. It would be nice if Monkeytype could leverage that, and perhaps have a flag to use a union with None rather than the Optional type.
# Old syntaxdeffoo(a: Optional[Union[float, int]]) ->Optional[float]:
...
# New syntaxdeffoo(a: float|int|None) ->float|None:
...
The text was updated successfully, but these errors were encountered:
Agreed, this would be a nice improvement. MonkeyType is currently in maintenance mode; I'd be happy to review a contributed PR for this, but it's not likely to happen otherwise.
PEP 604 introduces a new Union syntax in Python 3.10+. It would be nice if Monkeytype could leverage that, and perhaps have a flag to use a union with
None
rather than theOptional
type.The text was updated successfully, but these errors were encountered: