Skip to content

Commit

Permalink
Remove reference to implicitly Optional parameters (python#1345)
Browse files Browse the repository at this point in the history
This shorthand is no longer recommended - see python#689 which changed it in PEP 484.
  • Loading branch information
takluyver authored and mnm678 committed Oct 22, 2020
1 parent 209ac45 commit af76b65
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pep-0483.txt
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,6 @@ are still controversial or not fully specified.)
class MyComparable:
def compare(self, other: 'MyComparable') -> int: ...

- If a default of ``None`` is specified, the type is implicitly
``Optional``, e.g.::

def get(key: KT, default: VT = None) -> VT: ...

- Type variables can be declared in unconstrained, constrained,
or bounded form. The variance of a generic type can also
be indicated using a type variable declared with special keyword
Expand Down

0 comments on commit af76b65

Please sign in to comment.