4 ms·
In Python 3.12 syntax, you can use type UserIs = UUID
by movpasd 1y ago
In Python 3.12 syntax, you can use
type UserIs = UUID
- 12_throw_away 1y ago`type UserId = UUID` creates a TypeAlias, not the same thing (from a type checker's point of view) as a NewType [1]. [1] https://typing.python.org/en/latest/spec/aliases.html https://typing.python.org/en/latest/spec/aliases.html