From a1082902894728df0739d620a6595845eb5b3f05 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sat, 28 Mar 2020 22:07:30 +0000 Subject: [PATCH] Remove reference to implicitly Optional parameters (#1345) This shorthand is no longer recommended - see #689 which changed it in PEP 484. --- pep-0483.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pep-0483.txt b/pep-0483.txt index c3f7ddc61..85285f031 100644 --- a/pep-0483.txt +++ b/pep-0483.txt @@ -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