With this type system is it possible to subclass string and int, to enforce types for, let’s say, firstName, postalCode, etc.
FirstName = NewType('FirstName', str)
PostalCode = NewType('PostalCode', str)
[1] https://docs.python.org/3/library/typing.html#newtype FirstNameType = str
(But don't use ints for postal codes, even if the postal codes are numeric)Maybe in the US. In Canada, they are 6 characters of letter-digit-letter-digit-letter-digit (in regex: /((?:[A-Z][0-9]){3})/)