Skip to content

lazy import is not highlighted in the docs #153227

Description

@ZeroIntensity

Documentation

In our documentation, lazy in lazy import isn't highlighted as a keyword. This is because the latest version of Pygments, the highlighting library used by Sphinx, does not include the lazy import implementation.

Several weeks ago, I asked Pygments whether they were planning to release this anytime soon, but I haven't gotten a response. So, in the meantime, I think we should pin a development version of Pygments so the PEP 810 examples look correct.

cc @AA-Turner who I discussed this with on Discord a while back

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirinfraCI, GitHub Actions, buildbots, Dependabot, etc.topic-lazy-imports

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions