Skip to content
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

Treat type(Protocol) et al as metaclass base #12770

Merged
merged 5 commits into from
Aug 9, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

Closes #12736.

| ["abc", "ABCMeta"]
| ["enum", "EnumMeta" | "EnumType"]
)
}),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only logic change.

@charliermarsh charliermarsh added the bug Something isn't working label Aug 9, 2024
Copy link

codspeed-hq bot commented Aug 9, 2024

CodSpeed Performance Report

Merging #12770 will not alter performance

Comparing charlie/meta (f98f274) with main (37b9bac)

Summary

✅ 32 untouched benchmarks

Copy link
Contributor

github-actions bot commented Aug 9, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

crates/ruff_python_semantic/src/analyze/class.rs Outdated Show resolved Hide resolved
crates/ruff_python_semantic/src/analyze/class.rs Outdated Show resolved Hide resolved
@charliermarsh
Copy link
Member Author

Thanks Alex!

@charliermarsh charliermarsh enabled auto-merge (squash) August 9, 2024 20:05
@charliermarsh charliermarsh merged commit 69e1c56 into main Aug 9, 2024
16 checks passed
@charliermarsh charliermarsh deleted the charlie/meta branch August 9, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

N805 False positive for class Meta(type(base))
3 participants