[Python-checkins] cpython (3.5): Issue #28649: fix second issue with _ForwardRef (#328)
guido.van.rossum
python-checkins at python.org
Thu Nov 10 11:29:45 EST 2016
https://hg.python.org/cpython/rev/555f0ca31587
changeset: 105036:555f0ca31587
branch: 3.5
parent: 105033:0da2e381ad71
user: Guido van Rossum <guido at python.org>
date: Thu Nov 10 08:29:18 2016 -0800
summary:
Issue #28649: fix second issue with _ForwardRef (#328)
files:
Lib/typing.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/typing.py b/Lib/typing.py
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -218,7 +218,7 @@
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list