Skip to content

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

Merged
charliermarsh merged 5 commits into
mainfrom
charlie/meta
Aug 9, 2024
Merged

charliermarsh merged 5 commits into
mainfrom
charlie/meta

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

Closes #12736.

Comment thread crates/ruff_python_semantic/src/analyze/class.rs
| ["abc", "ABCMeta"]
| ["enum", "EnumMeta" | "EnumType"]
)
}),

Copy link
Copy Markdown
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.

Comment thread crates/ruff_python_semantic/src/analyze/class.rs Outdated
Comment thread crates/ruff_python_semantic/src/analyze/class.rs
@charliermarsh charliermarsh added the bug An issue describing something that isn't working, or a PR that fixes a bug label Aug 9, 2024
Comment thread crates/ruff_python_semantic/src/analyze/class.rs Outdated
Comment thread crates/ruff_python_semantic/src/analyze/class.rs
Comment thread crates/ruff_python_semantic/src/analyze/class.rs
@codspeed

codspeed Bot commented Aug 9, 2024 •

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #12770 will not alter performance

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

Summary

✅ 32 untouched benchmarks

@github-actions

github-actions Bot commented Aug 9, 2024 •

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Comment thread crates/ruff_python_semantic/src/analyze/class.rs Outdated
Comment thread crates/ruff_python_semantic/src/analyze/class.rs Outdated
charliermarsh and others added 3 commits August 9, 2024 16:04
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@charliermarsh

Copy link
Copy Markdown
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
@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 An issue describing something that isn't working, or a PR that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants