Skip to content

Conversation

@lagru
Copy link
Member

@lagru lagru commented Jul 31, 2025

Uses _section_annotations to avoid duplicating code paths and logic, and makes sure that no note or warning is raised for inline annotations if there is no conflict with a doctype. Also improves the test suite around this.

Make sure that no warning is raised for inline annotations, if there is no
conflicting annotation in a docstring. Otherwise, the inlined annotation 
takes precedence and a warning is printed.
{label="fix"}

lagru added 2 commits July 31, 2025 13:34
when the docstring doesn't contain a type description. In which case
a `FallbackAnnotation` is provided.

Also simplifies the redundant implementation of
`DocstringAnnotations.attributes`.
@lagru lagru added this to the v0.4 milestone Jul 31, 2025
@lagru lagru added maintenance Keeps the lights on fix Addresses regressions & bugs labels Jul 31, 2025
@lagru lagru merged commit a13ad28 into main Jul 31, 2025
7 checks passed
@lagru lagru deleted the no-note-inline-attributes branch July 31, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Addresses regressions & bugs maintenance Keeps the lights on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants