From cb848164eefbd265917053ca94477d266862fab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Fourrier?= <22726840+clefourrier@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:03:20 +0100 Subject: [PATCH 1/2] Update pyext.py to fit Python 3.11 --- pyext.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyext.py b/pyext.py index 2f4645a..92abe52 100644 --- a/pyext.py +++ b/pyext.py @@ -30,7 +30,11 @@ 'call_if_main', 'run_main'] import sys, inspect, types, functools +import inspect +if not hasattr(inspect, 'getargspec'): + inspect.getargspec = inspect.getfullargspec + def _targspec(func, specs, attr='__orig_arg__'): if hasattr(func, '__is_overload__') and func.__is_overload__: return getattr(func, attr) From 8aaabb215a20b8b8e3e4db2da3b4a245df2b33a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Fourrier?= <22726840+clefourrier@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:07:06 +0100 Subject: [PATCH 2/2] Update pyext.py --- pyext.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyext.py b/pyext.py index 92abe52..dee1e1c 100644 --- a/pyext.py +++ b/pyext.py @@ -30,7 +30,6 @@ 'call_if_main', 'run_main'] import sys, inspect, types, functools -import inspect if not hasattr(inspect, 'getargspec'): inspect.getargspec = inspect.getfullargspec