Commit 193df3ae authored by Guido van Rossum's avatar Guido van Rossum

Issue #28649: fix second issue with _ForwardRef (#328)

parent 18de8059
...@@ -218,7 +218,7 @@ class _ForwardRef(_TypingBase, _root=True): ...@@ -218,7 +218,7 @@ class _ForwardRef(_TypingBase, _root=True):
self.__forward_value__ = None self.__forward_value__ = None
def _eval_type(self, globalns, localns): 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: if globalns is None and localns is None:
globalns = localns = {} globalns = localns = {}
elif globalns is None: elif globalns is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment