From 8201c52c434359277a208945ba0b07fdc643172a Mon Sep 17 00:00:00 2001 From: David Bieber Date: Sat, 24 Feb 2024 12:33:04 -0500 Subject: [PATCH] Disable no-member for getargspec already guarded by version check --- fire/inspectutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fire/inspectutils.py b/fire/inspectutils.py index 0fa8e7d3..15f32f91 100644 --- a/fire/inspectutils.py +++ b/fire/inspectutils.py @@ -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