Skip to content

Commit a108290

Browse files
authored
Remove reference to implicitly Optional parameters (#1345)
This shorthand is no longer recommended - see #689 which changed it in PEP 484.
1 parent 164f8fa commit a108290

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pep-0483.txt

-5
Original file line numberDiff line numberDiff line change
@@ -738,11 +738,6 @@ are still controversial or not fully specified.)
738738
class MyComparable:
739739
def compare(self, other: 'MyComparable') -> int: ...
740740

741-
- If a default of ``None`` is specified, the type is implicitly
742-
``Optional``, e.g.::
743-
744-
def get(key: KT, default: VT = None) -> VT: ...
745-
746741
- Type variables can be declared in unconstrained, constrained,
747742
or bounded form. The variance of a generic type can also
748743
be indicated using a type variable declared with special keyword

0 commit comments

Comments
 (0)