From a101efda1f09c618ac19fabcfe6fd141599cabf4 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Fri, 2 Jun 2023 01:39:01 -0400 Subject: [PATCH] Keep typeguard back so @typechecked works in notebooks This seems to have stopped working in major version 3 (based on my testing in this project). The current major version of typeguard is 4. The issue looks like: https://github.com/agronholm/typeguard/issues/364 This should probably only be a temporary solution. There are other libraries I could use. But also, it's not obvious that the added clarity of presentation from defining the top-level functions in the notebooks that use them, rather than in modules as I would ordinarily do, is justified, even in the absence of this issue. So it may be worthwhile to revisit that design decision for codegraph. But for now I'm keeping that as it is and holding back typeguard. This commit also updates typing-extensions to the next patch version. --- Pipfile | 2 +- Pipfile.lock | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Pipfile b/Pipfile index 613afef..cd39772 100644 --- a/Pipfile +++ b/Pipfile @@ -9,7 +9,7 @@ ipykernel = "*" pygit2 = "*" pyyaml = "*" requests = "*" -typeguard = "*" +typeguard = ">=2.13.3,<3" [dev-packages] jupyterlab = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 4ae496c..06c1f30 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "43e589d44766a372f3109f5c94e82297113a5a9bfe4ea0d76391c08f183715d4" + "sha256": "fbdf3aa68515abf48a423cac3dbaccf35df81f94ade54e1a034b09ac3541f827" }, "pipfile-spec": 6, "requires": { @@ -445,7 +445,7 @@ "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==2.8.2" }, "pyyaml": { @@ -590,7 +590,7 @@ "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==1.16.0" }, "stack-data": { @@ -627,11 +627,11 @@ }, "typeguard": { "hashes": [ - "sha256:194fb3dbcb06ea9caf7088f3befee014de57961689f9c859ac5239b1ef61d987", - "sha256:c4a40af0ba8a41077221271b46d0a6d8d46045443e4d887887c69254ca861952" + "sha256:00edaa8da3a133674796cf5ea87d9f4b4c367d77476e185e80251cc13dfbb8c4", + "sha256:5e3e3be01e887e7eafae5af63d1f36c849aaa94e3a0112097312aabfa16284f1" ], "index": "pypi", - "version": "==4.0.0" + "version": "==2.13.3" }, "urllib3": { "hashes": [ @@ -1475,7 +1475,7 @@ "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==2.8.2" }, "python-json-logger": { @@ -1652,7 +1652,7 @@ "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2'", "version": "==1.16.0" }, "smmap": { @@ -1729,11 +1729,11 @@ }, "typing-extensions": { "hashes": [ - "sha256:06006244c70ac8ee83fa8282cb188f697b8db25bc8b4df07be1873c43897060c", - "sha256:3a8b36f13dd5fdc5d1b16fe317f5668545de77fa0b8e02006381fd49d731ab98" + "sha256:88a4153d8505aabbb4e13aacb7c486c2b4a33ca3b3f807914a9b4c844c471c26", + "sha256:d91d5919357fe7f681a9f2b5b4cb2a5f1ef0a1e9f59c4d8ff0d3491e05c0ffd5" ], "markers": "python_version >= '3.7'", - "version": "==4.6.2" + "version": "==4.6.3" }, "uri-template": { "hashes": [