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

Treat all singledispatch arguments as runtime-required #11523

Merged
merged 1 commit into from
May 24, 2024

Conversation

charliermarsh
Copy link
Member

Summary

It turns out that singledispatch does end up evaluating all arguments, even though only the first is used to dispatch.

Closes #11520.

@charliermarsh charliermarsh added the bug Something isn't working label May 24, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh merged commit 52c946a into main May 24, 2024
19 checks passed
@charliermarsh charliermarsh deleted the charlie/singledispatch branch May 24, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positive TCH003 fix for singledispatch functions with type annotations.
1 participant