3 ms·
`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/sp
by 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