Skip to content

Proper detection of self-doc and PEP 701 f-strings - #360

Draft
netromdk wants to merge 10 commits into
masterfrom
f-string-improvements
Draft

Proper detection of self-doc and PEP 701 f-strings#360
netromdk wants to merge 10 commits into
masterfrom
f-string-improvements

Conversation

@netromdk

@netromdk netromdk commented Sep 4, 2026

Copy link
Copy Markdown
Owner

WIP

@netromdk netromdk self-assigned this Sep 4, 2026
self-doc is 3.8+
PEP 701 f-string is 3.12+
@netromdk
netromdk force-pushed the f-string-improvements branch from 154adf7 to 8e7f0eb Compare September 4, 2026 06:45
@coveralls

coveralls commented Sep 4, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 99.301% (-0.01%) from 99.313% — f-string-improvements into master

@netromdk
netromdk force-pushed the f-string-improvements branch 3 times, most recently from 44bd571 to 4999538 Compare September 5, 2026 06:11
@netromdk
netromdk force-pushed the f-string-improvements branch 2 times, most recently from 68a457b to 2439080 Compare September 6, 2026 06:27
It is gated behind `--feature fstring-pep701`.
Detection requires Python 3.12+ to parse the syntax.
`visit_keyword()` only analyzed kwarg values when the callee matched a known kwarg rule, so
user-defined callee values were never visited, and thus under-reporting the minimum version in
certain cases.
They are now always-on but can be disabled by using `--no-feature`.
@netromdk
netromdk force-pushed the f-string-improvements branch from 2439080 to 76f55da Compare September 6, 2026 06:32
@netromdk
netromdk force-pushed the f-string-improvements branch from 76f55da to 581a133 Compare September 6, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants