Skip to content

Commit dad1790

Browse files
committed
Issue python#28649: fix second issue with _ForwardRef (python#328)
1 parent c7b9295 commit dad1790

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __init__(self, arg):
218218
self.__forward_value__ = None
219219

220220
def _eval_type(self, globalns, localns):
221-
if not self.__forward_evaluated__:
221+
if not self.__forward_evaluated__ or localns is not globalns:
222222
if globalns is None and localns is None:
223223
globalns = localns = {}
224224
elif globalns is None:

0 commit comments

Comments
 (0)