Skip to content

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 ty 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
@github-actions
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

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants