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

sorted does not enforce that the items are comparable with each other #13499

Open
KotlinIsland opened this issue Feb 14, 2025 · 0 comments
Open
Labels
stubs: false negative Type checkers do not report an error, but should

Comments

@KotlinIsland
Copy link
Contributor

KotlinIsland commented Feb 14, 2025

pyright
mypy

sorted(["a", 1])  # no error
@AlexWaygood AlexWaygood added the stubs: false negative Type checkers do not report an error, but should label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: false negative Type checkers do not report an error, but should
Projects
None yet
Development

No branches or pull requests

2 participants