Skip to content

[ty] Rename implicit-concatenated-string-type-annotation to implicit-string-concatenation-in-type-annotation - #30286

Draft
AlexWaygood wants to merge 1 commit into
mainfrom
alex/rename-implicit-concatenated-string-type-annotation
Draft

AlexWaygood wants to merge 1 commit into
mainfrom
alex/rename-implicit-concatenated-string-type-annotation

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

Rename the rule to better conform to Ruff’s rule naming convention. In value: "in" "t", ty flags the implicit string concatenation. The new name puts that operation first and identifies the type annotation as the place where it occurs.

implicit-concatenated-string-type-annotation remains a compatibility alias for existing configuration and suppression comments.

…it-string-concatenation-in-type-annotation`
@AlexWaygood AlexWaygood added ty The ty type checker diagnostics Diagnostic messages, annotations, fixes & rendering infra--not for PRs that just add new diagnostics labels Nov 10, 2026
@astral-automations-bot

Copy link
Copy Markdown
Contributor

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 98.60%. The percentage of expected errors that received a diagnostic held steady at 98.86%. The number of fully passing files held steady at 137/146.

Results for c664beb · Workflow run

@astral-automations-bot

Copy link
Copy Markdown
Contributor

Memory usage report

Memory usage unchanged ✅


Results for c664beb · Workflow run

@astral-automations-bot

Copy link
Copy Markdown
Contributor

ecosystem-analyzer results

Lint rule Added Removed Changed
implicit-concatenated-string-type-annotation 0 5 0
implicit-string-concatenation-in-type-annotation 5 0 0
Total 5 5 0

Large timing changes:

Project Old Time New Time Change
packaging 0.07s 0.10s +50%

Raw diff:

pandas (https://github.com/pandas-dev/pandas)
- pandas/core/tools/datetimes.py:1268:17 error[implicit-concatenated-string-type-annotation] Type expressions cannot span multiple string literals
+ pandas/core/tools/datetimes.py:1268:17 error[implicit-string-concatenation-in-type-annotation] Type expressions cannot span multiple string literals

pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)
- src/pytest_autoprofile/profiler.py:68:11 error[implicit-concatenated-string-type-annotation] Type expressions cannot span multiple string literals
+ src/pytest_autoprofile/profiler.py:68:11 error[implicit-string-concatenation-in-type-annotation] Type expressions cannot span multiple string literals
- tests/test-modules-and-tests/test_subprocess/packages/myfork.py:80:21 error[implicit-concatenated-string-type-annotation] Type expressions cannot span multiple string literals
+ tests/test-modules-and-tests/test_subprocess/packages/myfork.py:80:21 error[implicit-string-concatenation-in-type-annotation] Type expressions cannot span multiple string literals
- tests/test-modules-and-tests/test_subprocess/packages/myprocess.py:134:17 error[implicit-concatenated-string-type-annotation] Type expressions cannot span multiple string literals
+ tests/test-modules-and-tests/test_subprocess/packages/myprocess.py:134:17 error[implicit-string-concatenation-in-type-annotation] Type expressions cannot span multiple string literals

trio (https://github.com/python-trio/trio)
- src/trio/testing/_raises_group.py:532:13 error[implicit-concatenated-string-type-annotation] Type expressions cannot span multiple string literals
+ src/trio/testing/_raises_group.py:532:13 error[implicit-string-concatenation-in-type-annotation] Type expressions cannot span multiple string literals

Full report with detailed diff · Timing results


Results for c664beb · Workflow run

This branch was successfully deployed

1 active deployment
automations — c664bebc Deployed Nov 10, 2026 by AlexWaygood via security-review / security review #98076
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diagnostics Diagnostic messages, annotations, fixes & rendering infra--not for PRs that just add new diagnostics ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant