We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06c5be commit 25b7a87Copy full SHA for 25b7a87
pep-0484.txt
@@ -1590,8 +1590,9 @@ from ``UserId`` where ``int`` is expected. Examples::
1590
num = UserId(5) + 1 # type: int
1591
1592
``NewType`` accepts exactly two arguments: a name for the new unique type,
1593
-and a base class. The latter should be a proper class, i.e.,
1594
-not a type construct like ``Union``, etc. The function returned by ``NewType``
+and a base class. The latter should be a proper class (i.e.,
+not a type construct like ``Union``, etc.), or another unique type created
1595
+by calling ``NewType``. The function returned by ``NewType``
1596
accepts only one argument; this is equivalent to supporting only one
1597
constructor accepting an instance of the base class (see above). Example::
1598
0 commit comments