mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +00:00
parent
c7b92950c9
commit
dad179075a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue