(obj)
| 196 | results = [] |
| 197 | |
| 198 | def callback(obj): |
| 199 | try: |
| 200 | result = validate(obj) |
| 201 | except OSError as e: |
| 202 | symbol = f"{_get_module(obj, default='')}.{obj.__name__}" |
| 203 | logger.warning(f"Unable to validate `{symbol}` due to `{e}`") |
| 204 | return |
| 205 | |
| 206 | errors = [] |
| 207 | for errcode, errmsg in result.get('errors', []): |
| 208 | if allow_rules and errcode not in allow_rules: |
| 209 | continue |
| 210 | if disallow_rules and errcode in disallow_rules: |
| 211 | continue |
| 212 | if any(isinstance(obj, obj_type) and errcode in errcode_list |
| 213 | for obj_type, errcode_list |
| 214 | in NumpyDoc.IGNORE_VALIDATION_ERRORS_FOR_TYPE.items()): |
| 215 | continue |
| 216 | errors.append((errcode, errmsg)) |
| 217 | |
| 218 | if len(errors): |
| 219 | result['errors'] = errors |
| 220 | results.append((obj, result)) |
| 221 | |
| 222 | with self._apply_patches(): |
| 223 | for symbol in self.symbols: |
nothing calls this directly
no test coverage detected