-
-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
python/typing
#1076Labels
Description
File "/workspace/tools/venv/lib/python3.7/site-packages/typing_extensions.py", line 143, in _collect_type_vars
not isinstance(t, _UnpackAlias)
NameError: name '_UnpackAlias' is not defined
This bug was found in the CI of PaddleSpeech in the before dawn of 2022.02.14 (China), there are many python lib depends on typing, for exapmle, jsonlines
, the error reporting stack is
2022-02-13 23:18:22 Traceback (most recent call last):
2022-02-13 23:18:22 File "/workspace/paddlespeech/t2s/exps/fastspeech2/../synthesize.py", line 18, in <module>
2022-02-13 23:18:22 import jsonlines
2022-02-13 23:18:22 File "/workspace/tools/venv/lib/python3.7/site-packages/jsonlines/__init__.py", line 6, in <module>
2022-02-13 23:18:22 from .jsonlines import (
2022-02-13 23:18:22 File "/workspace/tools/venv/lib/python3.7/site-packages/jsonlines/jsonlines.py", line 33, in <module>
2022-02-13 23:18:22 from typing_extensions import Literal # pragma: no cover
2022-02-13 23:18:22 File "/workspace/tools/venv/lib/python3.7/site-packages/typing_extensions.py", line 494, in <module>
2022-02-13 23:18:22 OrderedDict = typing._alias(collections.OrderedDict, (KT, VT))
2022-02-13 23:18:22 File "/usr/local/lib/python3.7/typing.py", line 1191, in _alias
2022-02-13 23:18:22 return _GenericAlias(origin, params, special=True, inst=inst)
2022-02-13 23:18:22 File "/usr/local/lib/python3.7/typing.py", line 613, in __init__
2022-02-13 23:18:22 self.__parameters__ = _collect_type_vars(params)
2022-02-13 23:18:22 File "/workspace/tools/venv/lib/python3.7/site-packages/typing_extensions.py", line 143, in _collect_type_vars
2022-02-13 23:18:22 not isinstance(t, _UnpackAlias)
2022-02-13 23:18:22 NameError: name '_UnpackAlias' is not defined
Our CI works well with the new release typing_extensions 4.1.1, Thanks