algorand / graviton

🧑‍🔬 verify your TEAL program by experiment and observation
MIT License
17 stars 8 forks source link

mypy: mark Type Aliases with typing.TypeAlias #53

Open tzaffi opened 1 year ago

tzaffi commented 1 year ago

There are several type aliases in the repo. They actually can be marked with a type: TypeAlias. EG:

from typing import TypeAlias, Union

MyCompoundType: TypeAlias = Union[str, int, None]