Skip to content

Commit

Permalink
Disable no-member for getargspec already guarded by version check
Browse files Browse the repository at this point in the history
  • Loading branch information
dbieber committed Feb 24, 2024
1 parent c737a96 commit 8201c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fire/inspectutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ class with an __init__ method.
def Py2GetArgSpec(fn):
"""A wrapper around getargspec that tries both fn and fn.__call__."""
try:
return inspect.getargspec(fn) # pylint: disable=deprecated-method
return inspect.getargspec(fn) # pylint: disable=deprecated-method,no-member
except TypeError:
if hasattr(fn, '__call__'):
return inspect.getargspec(fn.__call__) # pylint: disable=deprecated-method
return inspect.getargspec(fn.__call__) # pylint: disable=deprecated-method,no-member
raise


Expand Down

0 comments on commit 8201c52

Please sign in to comment.