Skip to content

Treat return type of singledispatch as runtime-required#13957

Merged
charliermarsh merged 1 commit intomainfrom
dhruv/tch003-return-type
Oct 29, 2024
Merged

Treat return type of singledispatch as runtime-required#13957
charliermarsh merged 1 commit intomainfrom
dhruv/tch003-return-type

Conversation

@dhruvmanila
Copy link
Copy Markdown
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
@dhruvmanila dhruvmanila force-pushed the dhruv/tch003-return-type branch from f928b82 to 2e45e96 Compare October 28, 2024 06:22
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Copy Markdown
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
Copy Markdown
Member

I think this is right.

@charliermarsh charliermarsh merged commit ec6208e into main Oct 29, 2024
@charliermarsh charliermarsh deleted the dhruv/tch003-return-type branch October 29, 2024 00:33
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 (redux)

3 participants