File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1590,8 +1590,9 @@ from ``UserId`` where ``int`` is expected. Examples::
1590
1590
num = UserId(5) + 1 # type: int
1591
1591
1592
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``
1593
+ and a base class. The latter should be a proper class (i.e.,
1594
+ not a type construct like ``Union``, etc.), or another unique type created
1595
+ by calling ``NewType``. The function returned by ``NewType``
1595
1596
accepts only one argument; this is equivalent to supporting only one
1596
1597
constructor accepting an instance of the base class (see above). Example::
1597
1598
You can’t perform that action at this time.
0 commit comments