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

[red-knot] Report classes inheriting from bases with incompatible __slots__ #15129

Merged
merged 6 commits into from
Dec 27, 2024

Conversation

InSyncWithFoo
Copy link
Contributor

Summary

Resolves #14931.

Test Plan

Markdown tests.

Copy link
Contributor

github-actions bot commented Dec 24, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@AlexWaygood AlexWaygood added the red-knot Multi-file analysis & type inference label Dec 24, 2024
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

LGTM (modulo comment) but will leave for @AlexWaygood review.

crates/red_knot_python_semantic/src/types/mro.rs Outdated Show resolved Hide resolved
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks! Nicely done

@AlexWaygood AlexWaygood enabled auto-merge (squash) December 27, 2024 11:40
@AlexWaygood AlexWaygood merged commit 8d2d1a7 into astral-sh:main Dec 27, 2024
20 checks passed
@InSyncWithFoo InSyncWithFoo deleted the rk-slots branch December 27, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
red-knot Multi-file analysis & type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[red-knot] Detect classes with incompatible __slots__ being used in multiple inheritance
3 participants