We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5a9e9 commit df31e58Copy full SHA for df31e58
dev/archery/archery/lang/python.py
@@ -216,8 +216,8 @@ def signature(obj):
216
inspect.signature = orig_signature
217
218
def _should_ignore_error(self, obj, errcode):
219
- for typ, codes in NumpyDoc.IGNORE_VALIDATION_ERRORS_FOR_TYPE.items():
220
- if isinstance(obj, typ) and errcode in codes:
+ for obj_type, errcode_list in self.IGNORE_VALIDATION_ERRORS_FOR_TYPE.items():
+ if isinstance(obj, obj_type) and errcode in errcode_list:
221
return True
222
return False
223
@@ -238,7 +238,7 @@ def callback(obj):
238
continue
239
if disallow_rules and errcode in disallow_rules:
240
241
- if self._should_ignore_error(type(obj), errcode):
+ if self._should_ignore_error(obj, errcode):
242
243
errors.append((errcode, errmsg))
244
0 commit comments