From af76b65b46bb7241ed88053a9b692edb56f42933 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 c3f7ddc61a56..85285f03142e 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