We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Meta(type(base))
from typing import Protocol class MyMeta(type): def __subclasscheck__(cls, other): ... # ✅ class MyProtocolMeta(type(Protocol)): def __subclasscheck__(cls, other): ... # ❌
https://play.ruff.rs/5573b0e2-fba5-47c1-bc69-a7e780324a86
The text was updated successfully, but these errors were encountered:
Problem is with this function, which does not correctly recognizes metaclass in this case:
ruff/crates/ruff_python_semantic/src/analyze/class.rs
Lines 115 to 122 in df7345e
Sorry, something went wrong.
type(Protocol)
69e1c56
charliermarsh
Successfully merging a pull request may close this issue.
https://play.ruff.rs/5573b0e2-fba5-47c1-bc69-a7e780324a86
The text was updated successfully, but these errors were encountered: