pre-commit failes on pyupgrade: ImportError: cannot import name 'List' from 'tokenize_rt'
ggiesen opened this issue · 0 comments
ggiesen commented
Rewrite Code to be Py3.6+................................................Failed
- hook id: pyupgrade
- exit code: 1
Traceback (most recent call last):
File "/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/bin/pyupgrade", line 5, in <module>
from pyupgrade._main import main
File "/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/lib/python3.8/site-packages/pyupgrade/_main.py", line 30, in <module>
from pyupgrade._data import FUNCS
File "/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/lib/python3.8/site-packages/pyupgrade/_data.py", line 126, in <module>
_import_plugins()
File "/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/lib/python3.8/site-packages/pyupgrade/_data.py", line 123, in _import_plugins
__import__(name, fromlist=['_trash'])
File "/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/lib/python3.8/site-packages/pyupgrade/_plugins/pep584.py", line 5, in <module>
from tokenize_rt import List
ImportError: cannot import name 'List' from 'tokenize_rt' (/home/vagrant/.cache/pre-commit/repoh23lnbxn/py_env-python3.8/lib/python3.8/site-packages/tokenize_rt.py)