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::
15901590 num = UserId(5) + 1 # type: int
15911591
15921592``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``
15951596accepts only one argument; this is equivalent to supporting only one
15961597constructor accepting an instance of the base class (see above). Example::
15971598
You can’t perform that action at this time.
0 commit comments