8000 Fix typo in MyMapping example. · python/typing@80a8ed4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80a8ed4

Browse files
author
Guido van Rossum
committed
Fix typo in MyMapping example.
1 parent eeb7393 commit 80a8ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep-0484.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ That class definition is equivalent to::
421421

422422
You can use multiple inheritance with ``Generic``::
423423

424-
from typing import TypeVar, Generic, Sized, Iterable, Container
424+
from typing import TypeVar, Generic, Sized, Iterable, Container, Tuple
425425

426426
T = TypeVar('T')
427427

@@ -432,7 +432,7 @@ You can use multiple inheritance with ``Generic``::
432432
V = TypeVar('V')
433433

434434
class MyMapping(Iterable[Tuple[K, V]],
435-
Container[Iterable[K, V]],
435+
Container[Tuple[K, V]],
436436
Generic[K, V]):
437437
...
438438

0 commit comments

Comments
 (0)
0