We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f9863 commit 2e42212Copy full SHA for 2e42212
python2/typing.py
@@ -207,7 +207,7 @@ def __init__(self, arg):
207
self.__forward_value__ = None
208
209
def _eval_type(self, globalns, localns):
210
- if not self.__forward_evaluated__:
+ if not self.__forward_evaluated__ or localns is not globalns:
211
if globalns is None and localns is None:
212
globalns = localns = {}
213
elif globalns is None:
src/typing.py
@@ -218,7 +218,7 @@ def __init__(self, arg):
218
219
220
221
222
223
224
0 commit comments