summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-11-10 08:29:19 -0800
committerGuido van Rossum <guido@python.org>2016-11-10 08:29:19 -0800
commit0d1acfdf18704614311b89089e9b049d6c020afa (patch)
tree624f5bf3852e163657c0836d678ead5759f80a49
parentfc293ddf92778c1ae1d8bdb62ffc084f4cd2db79 (diff)
parentdad179075ac026debf32c457df0f6ecd27787d30 (diff)
downloadcpython-git-0d1acfdf18704614311b89089e9b049d6c020afa.tar.gz
Issue #28649: fix second issue with _ForwardRef (#328) (3.5->3.6)
-rw-r--r--Lib/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 462cc225f6..7a64e07a18 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -218,7 +218,7 @@ class _ForwardRef(_TypingBase, _root=True):
self.__forward_value__ = None
def _eval_type(self, globalns, localns):
- if not self.__forward_evaluated__:
+ if not self.__forward_evaluated__ or localns is not globalns:
if globalns is None and localns is None:
globalns = localns = {}
elif globalns is None: