Files
typeshed/stdlib/3
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-04-11 00:27:58 -04:00
2016-04-11 00:27:58 -04:00
2016-05-30 10:04:51 -07:00
2016-04-11 00:27:58 -04:00
2016-05-07 13:22:16 -07:00
2016-04-11 00:27:58 -04:00
2016-03-09 11:58:24 +00:00
2016-05-05 11:32:06 +01:00
2016-04-11 00:27:58 -04:00
2016-04-11 00:27:58 -04:00
2016-05-01 17:48:23 -07:00
2016-04-12 16:09:07 -07:00
2016-03-15 09:52:24 +01:00
2016-05-04 16:54:57 -07:00
2016-03-23 08:30:39 +01:00
2016-02-22 17:44:07 -06:00
2016-03-06 09:25:49 +09:00
2016-05-17 14:32:03 +01:00
2016-05-19 14:34:38 -07:00
2016-04-11 00:27:58 -04:00
2016-04-11 00:27:58 -04:00
2016-03-10 01:28:07 +01:00
2016-05-12 16:52:36 -07:00
2016-04-11 00:27:58 -04:00
2016-01-16 16:54:47 -05:00
2016-05-03 11:48:38 -07:00
2016-04-11 00:27:58 -04:00
2016-02-25 09:41:32 +00:00
2015-12-30 21:59:56 +01:00
2016-05-26 15:23:31 -07:00
2016-05-12 14:45:23 -07:00
2016-01-16 16:52:01 -05:00
2015-10-01 14:53:57 -07:00
2016-04-17 19:59:47 -07:00
2016-05-04 16:54:57 -07:00
2016-03-06 10:03:55 +09:00