diff options
author | Guido van Rossum <guido@python.org> | 2016-11-10 08:29:19 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-11-10 08:29:19 -0800 |
commit | 0d1acfdf18704614311b89089e9b049d6c020afa (patch) | |
tree | 624f5bf3852e163657c0836d678ead5759f80a49 | |
parent | fc293ddf92778c1ae1d8bdb62ffc084f4cd2db79 (diff) | |
parent | dad179075ac026debf32c457df0f6ecd27787d30 (diff) | |
download | cpython-git-0d1acfdf18704614311b89089e9b049d6c020afa.tar.gz |
Issue #28649: fix second issue with _ForwardRef (#328) (3.5->3.6)
-rw-r--r-- | Lib/typing.py | 2 |
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: |