From 71855ebd5f1b5291ab3a30af120869f004d49baa Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Sat, 14 Dec 2024 17:35:45 +0000 Subject: [PATCH] appease pre-commit --- numpydoc/validate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/numpydoc/validate.py b/numpydoc/validate.py index caa64c50..495d7201 100644 --- a/numpydoc/validate.py +++ b/numpydoc/validate.py @@ -276,7 +276,7 @@ def type(self): @property def is_function_or_method(self): return inspect.isfunction(self.obj) - + @property def is_mod(self): return inspect.ismodule(self.obj) @@ -747,7 +747,6 @@ def validate(obj_name, validator_cls=None, **validator_kwargs): errs.append(error("YD01")) if not doc.is_mod: - if not doc.see_also: errs.append(error("SA01")) else: