From 06d8f491c49613ad8dec3417be6b8ddc49abe46a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 18 Apr 2023 02:06:11 +0200 Subject: [PATCH] Fix support for Python 3.11 (fixes #491) (#505) Co-authored-by: tibequadorian --- safeeyes/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safeeyes/utility.py b/safeeyes/utility.py index bf2dede..7e08735 100644 --- a/safeeyes/utility.py +++ b/safeeyes/utility.py @@ -666,7 +666,7 @@ def has_method(module, method_name, no_of_args=0): Check whether the given function is defined in the module or not. """ if hasattr(module, method_name): - if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args: + if len(inspect.getfullargspec(getattr(module, method_name)).args) == no_of_args: return True return False