diff options
-rw-r--r-- | Doc/library/typing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index e11c0c2..6993b31 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -68,7 +68,7 @@ Use the ``NewType`` helper function to create distinct types:: UserId = NewType('UserId', int) some_id = UserId(524313) - + The static type checker will treat the new type as if it were a subclass of the original type. This is useful in helping catch logical errors:: |