From 2ec3031a745ac2bac04418f4a437e6bf43fde184 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 6 Jun 2016 08:49:12 -0700 Subject: [PATCH] Fix an indentation error in the rST for NewType (Ryan Gonzalez). --- pep-0484.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0484.txt b/pep-0484.txt index a1019c3d5..dfa83ff99 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -1191,9 +1191,9 @@ simple unique types with almost zero runtime overhead. For a static type 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