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] Understand Annotated #14950

Merged
merged 24 commits into from
Dec 13, 2024
Merged

Conversation

InSyncWithFoo
Copy link
Contributor

Summary

Resolves #14922.

Test Plan

Markdown tests.

@InSyncWithFoo
Copy link
Contributor Author

Alright, I'm out of ideas for now. What am I missing?

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.

Thanks for working on this! Sorry about the bad experience, our expression coverage and the way it manifests in hard-to-debug errors is a known pain point we want to improve.

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

github-actions bot commented Dec 13, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

InSyncWithFoo and others added 4 commits December 13, 2024 13:33
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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.

LGTM, thanks!

@AlexWaygood AlexWaygood requested a review from carljm December 13, 2024 15:06
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.

Looks good to me!

crates/red_knot_python_semantic/src/types.rs Show resolved Hide resolved
crates/red_knot_python_semantic/src/types/diagnostic.rs Outdated Show resolved Hide resolved
InSyncWithFoo and others added 4 commits December 13, 2024 16:26
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.

Looks good, thank you!

@carljm carljm merged commit aa1938f into astral-sh:main Dec 13, 2024
21 checks passed
@InSyncWithFoo InSyncWithFoo deleted the rk-annotated branch December 13, 2024 17:50
carljm pushed a commit that referenced this pull request Dec 13, 2024
## Summary

Follow-up from #14950.

## Test Plan

Purely stylistic change. Shouldn't affect any functionalities.
dcreager added a commit that referenced this pull request Dec 13, 2024
* main:
  [red-knot] Use `type[Unknown]` rather than `Unknown` as the fallback metaclass for invalid classes (#14961)
  [red-knot] Make `is_subtype_of` exhaustive (#14924)
  [red-knot] Alphabetize rules (#14960)
  [red-knot] Understand `Annotated` (#14950)
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] Understand Annotated
4 participants