Skip to content

Conversation

@AlexWaygood
Copy link
Member

Summary

I've been away from Ruff for too long -- I forgot how complicated writing autofixes can be 🙃

This is a minor followup to #21667 to make the TypedDict fix introduced in that PR a bit better. It now preserves the quoting style of the previous string-literal node.

Test Plan

added a snapshot

@AlexWaygood AlexWaygood added ty Multi-file analysis & type inference diagnostics Related to reporting of diagnostics. labels Nov 28, 2025
Copy link
Contributor

@Gankra Gankra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've unlocked a wonderful rat's nest of syntax

@astral-sh-bot
Copy link

astral-sh-bot bot commented Nov 28, 2025

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Nov 28, 2025

I'll add internal as this doesn't need to be included in the changelog separately from #21667

@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label Nov 28, 2025
@AlexWaygood AlexWaygood enabled auto-merge (squash) November 28, 2025 18:38
@astral-sh-bot

This comment was marked as off-topic.

@AlexWaygood AlexWaygood merged commit 594b7b0 into main Nov 28, 2025
43 checks passed
@AlexWaygood AlexWaygood deleted the alex/typeddict-fix branch November 28, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diagnostics Related to reporting of diagnostics. internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants