From 284b787612af2fde74713ade8e6b6a2807d34011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bo=C5=A1tjan=20Mejak?= Date: Sun, 23 Dec 2018 17:45:51 +0100 Subject: Add 2 missing commas (GH-10698) --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 47ae4213f3..aa5e4d287a 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -101,7 +101,7 @@ accidentally creating a ``UserId`` in an invalid way:: # 'output' is of type 'int', not 'UserId' output = UserId(23413) + UserId(54341) -Note that these checks are enforced only by the static type checker. At runtime +Note that these checks are enforced only by the static type checker. At runtime, the statement ``Derived = NewType('Derived', Base)`` will make ``Derived`` a function that immediately returns whatever parameter you pass it. That means the expression ``Derived(some_value)`` does not create a new class or introduce -- cgit v1.2.1