Skip to content

Commit

Permalink
Add 2 missing commas (GH-10698)
Browse files Browse the repository at this point in the history
  • Loading branch information
PedanticHacker authored and rhettinger committed Dec 23, 2018
1 parent 6815155 commit 284b787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/typing.rst
Expand Up @@ -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
Expand Down

0 comments on commit 284b787

Please sign in to comment.