Issue #28649: fix second issue with _ForwardRef (#328) (3.5->3.6)

This commit is contained in:
Guido van Rossum 2016-11-10 08:29:19 -08:00
commit 0d1acfdf18
1 changed files with 1 additions and 1 deletions

View File

@ -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: