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