Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace napoleon.iterators by simpler stack implementation #9856

Merged
merged 1 commit into from Jun 26, 2022

Commits on Jun 25, 2022

  1. Replace sphinx.ext.napoleon.iterators by simpler stack implementation.

    The "peekable iterator" API is not actually needed by napoleon, as all
    elements are known from the beginning, so `_line_iter` can be readily
    replaced by a stack-like object (actually implemented with a deque here,
    to keep the lines in their physical order).
    
    This tightens the public API and makes it easier to extract napoleon for
    vendoring independently of sphinx.
    anntzer committed Jun 25, 2022
    Copy the full SHA
    2f97349 View commit details
    Browse the repository at this point in the history