From 63689e38bd99ded1f4561b42c248c35680ed8d8c Mon Sep 17 00:00:00 2001 From: Morgan Fouesneau Date: Mon, 2 Sep 2024 09:46:03 +0200 Subject: [PATCH] Update helpers.py --- pystellibs/helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pystellibs/helpers.py b/pystellibs/helpers.py index 6d99ab2..c72a166 100644 --- a/pystellibs/helpers.py +++ b/pystellibs/helpers.py @@ -3,7 +3,11 @@ """ import sys from functools import partial, wraps, update_wrapper -from inspect import getargspec, ismethod +try + from inspect import getargspec +except ImportError: # Apparently since py3.11 + from inspect import getfullargspec as getargspec +from inspect import ismethod import warnings import numpy as np import itertools