Skip to content

Commit

Permalink
appease pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Dec 14, 2024
1 parent abcd37c commit 71855eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions numpydoc/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 71855eb

Please sign in to comment.