Skip to content

Treat all singledispatch arguments as runtime-required - #11523

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

charliermarsh merged 1 commit into
mainfrom
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 An issue describing something that isn't working, or a PR that fixes a bug 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 An issue describing something that isn't working, or a PR that fixes a bug

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