31 Jul
2019
31 Jul
'19
6:52 a.m.
MyAlias: TypeAlias = int
Looks like a typed global from https://www.python.org/dev/peps/pep-0526/#global-and-local-variable-annotati... Which has the upside in this example "MyAlias is int" but I wonder if there's a downside somewhere, for example, presently this statement is evaluated at runtime, and ought to fail should `int` not be defined?