Skip to content

Commit 06d8f49

Browse files
hartworktibequadorian
andauthored
Fix support for Python 3.11 (fixes slgobinath#491) (slgobinath#505)
Co-authored-by: tibequadorian <[email protected]>
1 parent 682a027 commit 06d8f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

safeeyes/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def has_method(module, method_name, no_of_args=0):
666666
Check whether the given function is defined in the module or not.
667667
"""
668668
if hasattr(module, method_name):
669-
if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args:
669+
if len(inspect.getfullargspec(getattr(module, method_name)).args) == no_of_args:
670670
return True
671671
return False
672672

0 commit comments

Comments
 (0)