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:
Thomas Kluyver 2020-03-28 22:07:30 +00:00 committed by GitHub
parent 164f8fa1f8
commit a108290289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -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