Skip to content

Commit

Permalink
member.docstring.content
Browse files Browse the repository at this point in the history
  • Loading branch information
inbalapt1 committed Jan 9, 2025
1 parent 9786156 commit 94a4103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content-repo/gen_pydocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ def process(self, modules, _resolver):
for module in modules:
print(f"Module: {module.name}")
for member in module.members:
print(f" - Member: {member.name}, Member data: {member}, Docstring: {member.docstring}")
print(f" - Member: {member.name}\n Docstring content: {member.docstring.content}\n")
filtered_modules = []
for member in getattr(modules[0], 'members', []):
if member.docstring and 'ignore docstring' not in member.docstring:
if member.docstring and 'ignore docstring' not in member.docstring.content:
filtered_modules.append(member)
else:
print(f'Skipping {member}')
Expand Down

0 comments on commit 94a4103

Please sign in to comment.