[Python-checkins] peps: Fix an indentation error in the rST for NewType (Ryan Gonzalez).
guido.van.rossum
python-checkins at python.org
Mon Jun 6 11:49:24 EDT 2016
https://hg.python.org/peps/rev/aea4abe0f395
changeset: 6350:aea4abe0f395
user: Guido van Rossum <guido at python.org>
date: Mon Jun 06 08:49:12 2016 -0700
summary:
Fix an indentation error in the rST for NewType (Ryan Gonzalez).
files:
pep-0484.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0484.txt b/pep-0484.txt
--- a/pep-0484.txt
+++ b/pep-0484.txt
@@ -1191,9 +1191,9 @@
checker ``Derived = NewType('Derived', Base)`` is roughly equivalent
to a definition::
-class Derived(Base):
- def __init__(self, _x: Base) -> None:
- ...
+ class Derived(Base):
+ def __init__(self, _x: Base) -> None:
+ ...
While at runtime, ``NewType('Derived', Base)`` returns a dummy function
that simply returns its argument. Type checkers require explicit casts
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list