Open gabrielfior opened 7 months ago
From Python >= 3.10 it's possible to use the pipe operator -> https://peps.python.org/pep-0604/ I suggest replacing typing.Optional[X] occurrences by X | None.
typing.Optional[X]
X | None
If we go ahead with this, we can also replace list[...], set[...], etc. instead of typing.List, typing.Set, etc.
list[...], set[...], etc.
typing.List, typing.Set, etc.
From Python >= 3.10 it's possible to use the pipe operator -> https://peps.python.org/pep-0604/ I suggest replacing
typing.Optional[X]
occurrences byX | None
.