Browse Source

dev env: re-add typing-extensions to fix pipeline on python<3.10

Fabian Peter Hammerle 2 years ago
parent
commit
b8d69da7c8
2 changed files with 16 additions and 1 deletions
  1. 6 0
      Pipfile
  2. 10 1
      Pipfile.lock

+ 6 - 0
Pipfile

@@ -19,6 +19,12 @@ 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'"}
+
 [requires]
 python_version = "3"
 

+ 10 - 1
Pipfile.lock

@@ -1,7 +1,7 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "f03f840e841fb84742c81c5058cbdc3ce6df5331cd219ff14426f5299fa90291"
+            "sha256": "9c471d01a63caf7d6ad549908532336eea1f55769969fb159832837d2d2cbcd8"
         },
         "pipfile-spec": 6,
         "requires": {
@@ -253,6 +253,15 @@
             "markers": "python_version >= '3.7'",
             "version": "==2.0.1"
         },
+        "typing-extensions": {
+            "hashes": [
+                "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42",
+                "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"
+            ],
+            "index": "pypi",
+            "markers": "python_version < '3.10'",
+            "version": "==4.1.1"
+        },
         "wrapt": {
             "hashes": [
                 "sha256:086218a72ec7d986a3eddb7707c8c4526d677c7b35e355875a0fe2918b059179",