From e339532e4cfe82601e472c79df93bb2c76f6ad83 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 23 Nov 2022 01:10:50 +0000 Subject: [PATCH 1/3] .github/workflows/test.yml: Add Python 3.11 Add Python 3.11 to the tested versions --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 76ea8805d..1e7410f44 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,12 +31,11 @@ jobs: #- ubuntu-18.04 - ubuntu-20.04 python-version: + # Github seems to always block 3 jobs these days, so keep at most 3 + # versions there: - '3.7' - # Speed up the checks by skipping 3.8. Also github seems to always - # block 3 jobs these days, so maybe this will avoid that. - # - '3.8' - - '3.9' - - '3.10' + - '3.8' + - '3.11' # env: # DEFAULT_BRANCH: master -- GitLab From 8fe0a2f870cf7dec52a7d6ec4c439bb615b00bd4 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 23 Nov 2022 01:23:55 +0000 Subject: [PATCH 2/3] pytest.ini: Ignore deprecation warnings comming from devlib FIX Avoid hitting this warning: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index 7e4f19075..93fb8e33f 100644 --- a/pytest.ini +++ b/pytest.ini @@ -14,3 +14,4 @@ filterwarnings = ignore::DeprecationWarning:nest_asyncio.*: ignore::PendingDeprecationWarning:: ignore::DeprecationWarning:jupyter_client.*: + ignore::DeprecationWarning:devlib.*: -- GitLab From 969678337ad94b6295da9188a35628b1be59c3e8 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Wed, 23 Nov 2022 11:19:13 +0000 Subject: [PATCH 3/3] tools/exekall/exekall/engine.py: Fix support of typing.Self FIX Recognize typing.Self as a legitimate annotation. --- tools/exekall/exekall/engine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/exekall/exekall/engine.py b/tools/exekall/exekall/engine.py index 49f8b508b..473632a7f 100644 --- a/tools/exekall/exekall/engine.py +++ b/tools/exekall/exekall/engine.py @@ -2466,6 +2466,7 @@ class Operator: # in classes, rather than things coming from the typing module param_map, value_type = prototype if not all( + (hasattr(typing, 'Self') and annot == typing.Self) or isinstance(annot, type) and ( isinstance(annot, typing.TypeVar) or -- GitLab