Skip to content

[red-knot] Any cannot be parameterized#14933

Merged
AlexWaygood merged 1 commit intomainfrom
alex/parameterized-any
Dec 12, 2024
Merged

[red-knot] Any cannot be parameterized#14933
AlexWaygood merged 1 commit intomainfrom
alex/parameterized-any

Conversation

@AlexWaygood
Copy link
Member

Summary

We currently infer that objects annotated with Any[int] have type Any, and we don't emit an error telling them it's an invalid type annotation. That's a bug.

Test Plan

New mdtest added.

@AlexWaygood AlexWaygood added bug Something isn't working ty Multi-file analysis & type inference labels Dec 12, 2024
@AlexWaygood AlexWaygood enabled auto-merge (squash) December 12, 2024 11:46
@AlexWaygood AlexWaygood merged commit 45b565c into main Dec 12, 2024
@AlexWaygood AlexWaygood deleted the alex/parameterized-any branch December 12, 2024 11:50
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant