Skip to content

Commit af76b65

Browse files
takluyvermnm678
authored andcommitted
Remove reference to implicitly Optional parameters (python#1345)
This shorthand is no longer recommended - see python#689 which changed it in PEP 484.
1 parent 209ac45 commit af76b65

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pep-0483.txt

Lines changed: 0 additions & 5 deletions
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)