Closed Cheukting closed 2 years ago
🎉🎉🎉
I think we'll only want to do this inside annotations, since the | operator might be used in other ways too.
🎉🎉🎉
I think we'll only want to do this inside annotations, since the | operator might be used in other ways too.
sure, next step
Looks great! Add a test for arg: int | None | str | float
? Once that's handled, I'll merge and make a new release 🚀
Looks great! Add a test for
arg: int | None | str | float
? Once that's handled, I'll merge and make a new release 🚀
I just added the 3 or more version and it works on something like var: bool | None | int | str
(see the test file)
Recording the new Union operator for annotation to make None Last
see task in #22