Skip to content
New issue

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

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

Already on GitHub? # to your account

Treat return type of singledispatch as runtime-required #13957

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

dhruvmanila
Copy link
Member

Summary

fixes: #13955

Test Plan

Update existing test case to use a return type hint for which main flags TCH003.

@dhruvmanila dhruvmanila added the bug Something isn't working label Oct 28, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
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.

The code changes look good to me. Let's wait for @AlexWaygood to confirm the semantics.

@charliermarsh
Copy link
Member

I think this is right.

@charliermarsh charliermarsh merged commit ec6208e into main Oct 29, 2024
20 checks passed
@charliermarsh charliermarsh deleted the dhruv/tch003-return-type branch October 29, 2024 00:33
# for free to join this conversation on GitHub. Already have an account? # 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 (redux)
3 participants