Skip to content

Conversation

@lagru
Copy link
Member

@lagru lagru commented May 27, 2025

This refactor uncouples the doctype transformation. Structure information from parsing is preserved as much as possible so that it can be later used during name resolution. The end goal here is to eventually allow caching of the transformation. Since that is pretty independent of configuration or context.

This also addresses a few gaps in the grammar.

Release notes

For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.

Uncouple doctype transformation from name resolution.
{label="maintenance"}
Add support for expressions like `Literal[1, "some string"]` in doctypes.
The grammar previously only allowed names inside this form.
{label="bug fix"}
Log warnings emitted while parsing docstrings with NumPyDoc
and link to the file and line number of the docstring.
{label="enhancement"}

@lagru lagru added the maintenance Keeps the lights on label May 27, 2025
@lagru lagru changed the title Refactor & simplify Uncouple doctype transformation Jan 19, 2026
@lagru lagru marked this pull request as ready for review January 19, 2026 11:25
@lagru lagru added this to the v0.7 milestone Jan 19, 2026
@lagru lagru merged commit d2efa1e into main Jan 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Keeps the lights on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants