Skip to content

Comments

[ty] Add tests for dataclass fields annotated with Final#19202

Merged
sharkdp merged 3 commits intomainfrom
david/dataclass-final-fields
Jul 8, 2025
Merged

[ty] Add tests for dataclass fields annotated with Final#19202
sharkdp merged 3 commits intomainfrom
david/dataclass-final-fields

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Jul 8, 2025

Summary

Adds some tests for dataclass fields that are annotated with Final (see comment here). Turns out that nothing is needed here, everything already works as expected (apart from the fact that we can assign to Final fields, which is tracked in astral-sh/ty#158

Test Plan

New Markdown tests

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Jul 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@AlexWaygood AlexWaygood added the testing Related to testing Ruff itself label Jul 8, 2025
@sharkdp sharkdp force-pushed the david/dataclass-final-fields branch from 0c7706a to 7d642e6 Compare July 8, 2025 12:25
@sharkdp sharkdp enabled auto-merge (squash) July 8, 2025 12:31
@sharkdp sharkdp merged commit 9a4b85d into main Jul 8, 2025
36 checks passed
@sharkdp sharkdp deleted the david/dataclass-final-fields branch July 8, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Related to testing Ruff itself ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants