This is needed as rundependency for python-mypy
Signed-off-by: Algent Albrahimi <algent@protonmail.com>
Differential D8187
Initial inclusion of python-typing-extensions Authored by algent on Feb 6 2020, 10:05 PM. Tags None Referenced Files
Subscribers
Details
This is needed as rundependency for python-mypy Signed-off-by: Algent Albrahimi <algent@protonmail.com> Run python-mypy and check for errors for a few python scripts
Diff Detail
Event TimelineComment Actions We're now on python 3.7. Is this still needed? Really don't want to accept a backport for a python version we already have. Comment Actions Hey @joebonrichie! While testing python-mypy i run into this error: Traceback (most recent call last):
File "/usr/bin/mypy", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'typing_extensions>=3.7.4' distribution was not found and is required by mypyIn python-mypy v760 changelog
This is their PR. typing-extensions is a module of python-typing. Not sure if I should add python-typing as rundep for this package. Comment Actions Had a further look, looks like it needs python 3.8 to make use of the stdlib typing-extensions due to it's TypedDict usage. Seems good to me. |