Repository navigation
Add checked legacy Python 3.15 text signature overrides - #9756
youknowdot wants to merge 1 commit into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: truePre-merge checks:
|
5d41fb3 to
a96b484
Compare
a96b484 to
12b059d
Compare
12b059d to
17fe19b
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
|
Please split this PR in two. 1. Signatures that need a text-signature override. This is the 2. Everything else, i.e. the signatures the generator can produce: the symbolic — commented by Claude |
2409e56 to
4f745ac
Compare
Split the generator-supported corrections from the legacy display overrides in #9756. Preserve the callback context distinction between omission and explicit None, and fix CSV invalid-name error text. Assisted-by: OpenAI Codex: model version not exposed
Keep optional-group and CSV display signatures separate from argument binding. Validate explicit overrides against binding metadata in a const context and preserve legacy call behavior. Assisted-by: OpenAI Codex: model version not exposed
4f745ac to
1032738
Compare
Summary
This is the deferred override half requested in #9756 (comment). The generator-supported corrections have been split into #9795, an independent PR to merge first. Both branches are based directly on
main.text_signatureattribute for legacy signatures that the generator cannot express.str/bytes/bytearraysearch and prefix/suffix methods with nested optional groups, and to_csv.reader,writer, andregister_dialect.FromArgsderives, metadata, converters, dispatch, and CSV's delayed validation unchanged. The previouspy_optional_groupandDefaultRepr::OptionalGroupimplementation is removed.This stays draft for the final text-signature phase. The supported override grammar is intentionally narrow: positional parameters,
/, literal defaults,**kwargs, and nested trailing optional groups. Ordinary symbolic/default corrections continue to use the generator.Validation
At final head
4f745ac05:test_str test_bytes test_inspect test_csvpassed: all 4 files, 992 tests run, 77 skipped.All native checks used a clean rebuild of every workspace package. No source fix or additional push was needed after publication. GitHub CI is tracked separately; its final results are not claimed here.
AI assistance
Split, override implementation, review, and validation were performed with Codex. Original grouped-signature and CSV binding regressions are preserved; the CSV invalid-name error-text regression moved with its runtime fix to the independent generated-signature PR.