From: Guido van Rossum Date: Thu, 10 Nov 2016 16:29:18 +0000 (-0800) Subject: Issue #28649: fix second issue with _ForwardRef (#328) X-Git-Tag: v3.6.0b4~106^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dad179075ac026debf32c457df0f6ecd27787d30;p=python Issue #28649: fix second issue with _ForwardRef (#328) --- 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: