浏览代码

dev env: remove python version marker from "typing-extensions" to fix pipeline on python3.10

```
[...]
  File "[...]/python3.10/site-packages/pylint/utils/ast_walker.py", line 13, in <module>
    from astroid import nodes
  File "[...]/python3.10/site-packages/astroid/__init__.py", line 46, in <module>
    from astroid import inference, raw_building
  File "[...]/python3.10/site-packages/astroid/inference.py", line 18, in <module>
    from astroid import bases, constraint, decorators, helpers, nodes, protocols, util
  File "[...]/python3.10/site-packages/astroid/constraint.py", line 19, in <module>
    from typing_extensions import Self
ModuleNotFoundError: No module named 'typing_extensions'
```
Fabian Peter Hammerle 1 年之前
父节点
当前提交
7c08449480
共有 2 个文件被更改,包括 1 次插入7 次删除
  1. 0 5
      Pipfile
  2. 1 2
      Pipfile.lock

+ 0 - 5
Pipfile

@@ -19,11 +19,6 @@ importlib-metadata = {markers = "python_version < '3.8'"}
 # >  import zipp
 zipp = {markers = "python_version < '3.8'"}
 
-# python<3.10 compatibility
-# >   File "[...]/python3.8/site-packages/astroid/decorators.py", line 36, in <module>
-# >     from typing_extensions import ParamSpec
-# > ModuleNotFoundError: No module named 'typing_extensions'
-typing-extensions = {markers = "python_version < '3.10'"}
 # >    File "[...]/lib/python3.10/site-packages/_pytest/_code/code.py", line 60, in <module>
 # >     from exceptiongroup import BaseExceptionGroup
 # > ModuleNotFoundError: No module named 'exceptiongroup'

+ 1 - 2
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "2347c90d65747dc267c95bdf8516b2e210a0d0b7517b5831dce7125353485fd7"
+            "sha256": "385101f9ec2466f43e5158d6fcf2f25678ef5212511706e8f649e1717c6020fc"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -261,7 +261,6 @@
                 "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42",
                 "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"
             ],
-            "markers": "python_version < '3.10'",
             "version": "==4.1.1"
         },
         "wrapt": {