-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fix getargspec error with python 3.11.
- Loading branch information
1 parent
64b6b13
commit 285d6d6
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters