diff options
author | Guido van Rossum <guido@python.org> | 2016-11-10 16:29:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-11-10 16:29:18 (GMT) |
commit | dad179075ac026debf32c457df0f6ecd27787d30 (patch) | |
tree | 6b9e93a50dc6084e5a5fb758f391c0585e0b6f1a /Lib/typing.py | |
parent | c7b92950c90d99296b53f79fcc68a9f47b2d9356 (diff) | |
download | cpython-dad179075ac026debf32c457df0f6ecd27787d30.zip cpython-dad179075ac026debf32c457df0f6ecd27787d30.tar.gz cpython-dad179075ac026debf32c457df0f6ecd27787d30.tar.bz2 |
Issue #28649: fix second issue with _ForwardRef (#328)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 462cc22..7a64e07 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -218,7 +218,7 @@ class _ForwardRef(_TypingBase, _root=True): 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: |