Files
typeshed/stdlib
Guido van Rossum 25a45d6daf Revert "WIP: Mapping.{get,pop} can return default type (#223)"
This reverts commit d43adbe97e.

Here's a simple example of code that breaks with this PR:

from typing import Mapping, Dict, Tuple
a = {('0', '0'): 42}  # type: Mapping[Tuple[str, str], int]
b = a.get(('1', '1'), 0)

This gives an error on the last line:
error: No overload variant of "get" of "dict" matches argument types [Tuple[builtins.str, builtins.str], builtins.int]
2016-05-30 11:55:30 -07:00
..
2016-05-04 16:54:57 -07:00
2016-03-09 11:58:24 +00:00
2016-05-11 10:47:24 -07:00
2016-05-11 10:47:24 -07:00
2016-05-11 10:47:24 -07:00