Skip to content

Commit 04262f8

Browse files
committed
style
1 parent dcba75e commit 04262f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

utils/check_docstrings.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,17 +1405,20 @@ def check_docstrings(overwrite: bool = False, check_all: bool = False):
14051405
# They may be in all, but not in the modular itself (if they are implicitly inherited), so we need to try/catch
14061406
try:
14071407
class_ = getattr(module, name)
1408-
if not class_.__name__ in OBJECTS_TO_IGNORE:
1408+
if class_.__name__ not in OBJECTS_TO_IGNORE:
14091409
all_modular_public_classes.append(class_)
14101410
except AttributeError:
14111411
pass
14121412

14131413
# Skip objects that are private or not documented.
1414-
all_main_objects = [getattr(transformers, name) for name in dir(transformers) if not (name.startswith("_") or ignore_undocumented(name) or name in OBJECTS_TO_IGNORE)]
1414+
all_main_objects = [
1415+
getattr(transformers, name)
1416+
for name in dir(transformers)
1417+
if not (name.startswith("_") or ignore_undocumented(name) or name in OBJECTS_TO_IGNORE)
1418+
]
14151419

14161420
all_objects = all_main_objects + all_modular_public_classes
14171421
for obj in all_objects:
1418-
14191422
if not callable(obj) or not isinstance(obj, type) or getattr(obj, "__doc__", None) is None:
14201423
continue
14211424

0 commit comments

Comments
 (0)