Re:Python 3 Types in the Wild
by paisawalla on Friday March 18, 2022 @06:11PM
(#30728195)
In that case, you need a subclass of string that does nothing but has its type as FirstNameType. Wherever you create or return strings that are first names, you'll need to instantiate FirstNameType instead.
[ Parent
| on HN ]
There are no comments on this comment yet.