misc_py310
5def new_union(a: int | dict[str, "Foo"]) -> bool | None: 6 """Testing Python 3.10's new type union syntax."""
Testing Python 3.10's new type union syntax.
class
Foo:
NewStyleDict =
dict[str, str]
New-style dict.
OldStyleDict =
typing.Dict[str, str]
Old-style dict.