Skip to content

Fix docstrings for generators - #7288

Closed
rossbar wants to merge 17 commits into
networkx:mainfrom
rossbar:doc-returns-to-yields
Closed

rossbar wants to merge 17 commits into
networkx:mainfrom
rossbar:doc-returns-to-yields

Conversation

@rossbar

@rossbar rossbar commented Feb 12, 2024

Copy link
Copy Markdown
Contributor

Fixes #7258 and adds a regression test for all of the generators in NetworkX which had incorrect Returns sections in the docstrings.

These are just the ones caught by numpydoc (and ignores inherited methods), so there may be others!

@rossbar
rossbar marked this pull request as draft February 12, 2024 19:10
@rossbar

rossbar commented Feb 12, 2024

Copy link
Copy Markdown
Contributor Author

Marking as draft for now, as the numpydoc validation is missing a significant number of the generators listed in #7258. At a minimum I'd like to fix the rest of those docstrings here as well, and ideally there'd be a more robust solution for automatically catching Iterator/generator-likes (see #7258 (comment))

@rossbar
rossbar force-pushed the doc-returns-to-yields branch from 88987b1 to 01cd3fa Compare April 15, 2024 01:11
@rossbar

rossbar commented Feb 10, 2025

Copy link
Copy Markdown
Contributor Author

I'll go ahead and close this so further discussion can be concentrated in #7817!

@rossbar rossbar closed this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants