Remove reference to implicitly Optional parameters (#1345)
This shorthand is no longer recommended - see #689 which changed it in PEP 484.
This commit is contained in:
parent
164f8fa1f8
commit
a108290289
|
@ -738,11 +738,6 @@ are still controversial or not fully specified.)
|
||||||
class MyComparable:
|
class MyComparable:
|
||||||
def compare(self, other: 'MyComparable') -> int: ...
|
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,
|
- Type variables can be declared in unconstrained, constrained,
|
||||||
or bounded form. The variance of a generic type can also
|
or bounded form. The variance of a generic type can also
|
||||||
be indicated using a type variable declared with special keyword
|
be indicated using a type variable declared with special keyword
|
||||||
|
|
Loading…
Reference in New Issue