Skip to content

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Mar 12, 2025

Summary

A follow up to address this comment:

Similarly here, it might be a little more performant to have a single Type::instance() branch with an inner match over class.known() rather than having multiple branches with if class.is_known() guards

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Mar 12, 2025
@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

@sharkdp sharkdp merged commit 3228545 into main Mar 12, 2025
22 checks passed
@sharkdp sharkdp deleted the david/member-lookup-optimization branch March 12, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants