8000 Refactor: remove temporary `def` from `semanal_classprop.check_protocol_status` by sobolevn · Pull Request #17486 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Refactor: remove temporary def from semanal_classprop.check_protocol_status #17486

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

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

sobolevn
Copy link
Member
@sobolevn sobolevn commented Jul 5, 2024

There's no need to create and call a temporary function, when we can just call an existing method: faster and simplier.

Copy link
Contributor
github-actions bot commented Jul 5, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra JelleZijlstra merged commit ec00fb8 into master Jul 5, 2024
18 checks passed
@JelleZijlstra JelleZijlstra deleted the refactor-check_protocol_status branch July 5, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0