Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[red-knot] Make attributes.md test future-proof #14923

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Dec 11, 2024

Summary

Using typing.LiteralString breaks as soon as we understand sys.version_info branches, as it's only available in 3.11 and later.

Test Plan

Made sure it didn't fail on my #14759 branch anymore.

Using `typing.Literal` breaks as soon as we understand
`sys.version_info` branches, as it's only available in 3.11 and later.
@sharkdp sharkdp added the red-knot Multi-file analysis & type inference label Dec 11, 2024
@AlexWaygood

This comment was marked as resolved.

@AlexWaygood
Copy link
Member

Oh, you mean LiteralString! Yes, that's correct. Sorry for breaking your branch 🙃

@sharkdp
Copy link
Contributor Author

sharkdp commented Dec 11, 2024

Oh, you mean LiteralString

Yes, thanks!

Sorry for breaking your branch

No worries — I just wanted to pull it out from #14759 which seems big enough already. And I wasn't sure if you'd be okay with the change here.

@sharkdp sharkdp merged commit a7e5e42 into main Dec 11, 2024
21 checks passed
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@sharkdp sharkdp deleted the david/fix-attributed_md-test branch December 11, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants