Skip to content

Treat all singledispatch arguments as runtime-required#11523

Merged
charliermarsh merged 1 commit intomainfrom
charlie/singledispatch
May 24, 2024
Merged

Treat all singledispatch arguments as runtime-required#11523
charliermarsh merged 1 commit intomainfrom
charlie/singledispatch

Conversation

@charliermarsh
Copy link
Copy Markdown
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
@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.

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