Skip to content

Fix indirect dependencies for protocols#20752

Merged
ilevkivskyi merged 1 commit intopython:masterfrom
ilevkivskyi:fix-proto-indirect
Feb 6, 2026
Merged

Fix indirect dependencies for protocols#20752
ilevkivskyi merged 1 commit intopython:masterfrom
ilevkivskyi:fix-proto-indirect

Conversation

@ilevkivskyi
Copy link
Member

Fixes #15762

This is straightforward, for protocols, member types constitute semantic meaning of a type (for performance reasons we can actually skip bases for protocols, but some edge cases are not covered for members yet, I left a TODO).

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

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

@ilevkivskyi ilevkivskyi merged commit 62575ba into python:master Feb 6, 2026
23 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-proto-indirect branch February 6, 2026 09:45
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.

mypy cache bug in particular configuration of packages, files, and imports

2 participants