gnosis / prediction-market-agent-tooling

Tools to benchmark, deploy and monitor prediction market agents.
GNU Lesser General Public License v3.0
16 stars 2 forks source link

Replace t.Optional[X] by X | None #131

Open gabrielfior opened 7 months ago

gabrielfior commented 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.

kongzii commented 7 months ago

If we go ahead with this, we can also replace list[...], set[...], etc. instead of typing.List, typing.Set, etc.