Skip to content

[ty] update semantic tokens tests expectations#24764

Merged
MichaReiser merged 1 commit intoastral-sh:mainfrom
denyszhak:fix/tests-semantic-tokens
Apr 21, 2026
Merged

[ty] update semantic tokens tests expectations#24764
MichaReiser merged 1 commit intoastral-sh:mainfrom
denyszhak:fix/tests-semantic-tokens

Conversation

@denyszhak
Copy link
Copy Markdown
Contributor

Completes astral-sh/ty#3090

Summary

Adjust tests expectations as a follow up to #24718

@astral-sh-bot astral-sh-bot Bot added the ty Multi-file analysis & type inference label Apr 21, 2026
"t" @ 651..652: Variable [definition]
"MyClass" @ 655..662: Class
"prop" @ 663..667: Property [readonly]
"MyClass" @ 65..72: Class [definition]
Copy link
Copy Markdown
Contributor Author

@denyszhak denyszhak Apr 21, 2026

Choose a reason for hiding this comment

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

@MichaReiser sorry it's shifted the only different is in u = MyClass.__name__ but it still resolves into a variable and I think for it to be a property it requires implementation change

fn decorator_classification() {
let test = SemanticTokenTest::new(
r#"
class App:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@MichaReiser
To make sure this test covers complex decorator path as per your comment here #24718 (comment)

@AlexWaygood AlexWaygood added the testing Related to testing Ruff itself label Apr 21, 2026
@AlexWaygood AlexWaygood removed their request for review April 21, 2026 11:20
@denyszhak denyszhak changed the title [ty] update tests expectations [ty] update semantic tokens tests expectations Apr 21, 2026
Copy link
Copy Markdown
Member

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Thank you

@MichaReiser MichaReiser merged commit 2c4ff2e into astral-sh:main Apr 21, 2026
50 checks passed
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.

3 participants