ruff
[red-knot] Literal special form
#13874
Merged

[red-knot] Literal special form #13874

carljm merged 55 commits into astral-sh:main from Glyphack:literal-type
Glyphack
Glyphack Glyphack force pushed from 237eb285 to 6325a984 1 year ago
Glyphack Glyphack force pushed from 6325a984 to c04d4f32 1 year ago
Glyphack Glyphack force pushed from 0e42f90d to 3fe84bdc 1 year ago
Glyphack Glyphack force pushed from 3fe84bdc to fbcc66cf 1 year ago
Glyphack Glyphack marked this pull request as ready for review 1 year ago
Glyphack Glyphack requested a review from carljm carljm 1 year ago
Glyphack Glyphack requested a review from MichaReiser MichaReiser 1 year ago
Glyphack Glyphack requested a review from AlexWaygood AlexWaygood 1 year ago
github-actions
carljm
carljm requested changes on 2024-10-22
carljm carljm added ty
Glyphack Glyphack force pushed from a0cf7afb to 855405c9 1 year ago
Glyphack Glyphack force pushed from bb69a4c6 to a5a4f7f2 1 year ago
AlexWaygood
AlexWaygood commented on 2024-10-27
Glyphack
Glyphack Handle Literal special form
3994c5dd
Glyphack Update test comments
2bcd3d90
Glyphack Create InstanceType value for Type::Instance
2cbc65fc
Glyphack Handle inferring Literal type annotation
2bb37dcb
Glyphack Handle legal and illegal parameterization for literals
93e33587
Glyphack Glyphack force pushed from 3fc52a55 to 93e33587 1 year ago
Glyphack
Glyphack Add todo for producing correct unions with literals
c69d1dc2
Glyphack Cargo clippy fix
ea75875d
Glyphack Glyphack requested a review from carljm carljm 1 year ago
Glyphack Glyphack requested a review from AlexWaygood AlexWaygood 1 year ago
Glyphack Glyphack changed the title Add Literal special form to types Literal special form 1 year ago
Glyphack Glyphack changed the title Literal special form [red-knot] Literal special form 1 year ago
Glyphack Update instance.md
52b6ea8f
Glyphack
Glyphack commented on 2024-10-28
Glyphack Update infer.rs
eea67c00
Glyphack
Glyphack commented on 2024-10-28
Glyphack
Glyphack commented on 2024-10-28
carljm don't intern InstanceType
a3cfd303
carljm
carljm
carljm requested changes on 2024-10-28
Glyphack Update crates/red_knot_python_semantic/src/types.rs
68fbb1a1
Glyphack Update crates/red_knot_python_semantic/src/types/infer.rs
063d52fe
Glyphack Update crates/red_knot_python_semantic/src/types.rs
07698e47
AlexWaygood
AlexWaygood commented on 2024-10-29
Glyphack Update crates/red_knot_python_semantic/src/stdlib.rs
4ed30074
Glyphack Merge branch 'main' into literal-type
4916142c
Glyphack Update crates/red_knot_python_semantic/resources/mdtest/literal/liter…
aad11c86
Glyphack Renamed all usages of Instance(class)
1699d2cf
Glyphack Remove duplicate test case
1a7b01ab
Glyphack Replace Instance(class) with Instance(instance)
7b8dd856
Glyphack Add more tests for literal
351727b5
Glyphack Check module name for detecting Literals
7c3a1fe1
Glyphack Merge branch 'main' of github.com:astral-sh/ruff into literal-type
c2d8158b
Glyphack Remove literal illegal parameter arguments message
804d5dda
Glyphack Mark typing_extensions test case as todo
35f65bc4
Glyphack Unpack class type of instance in match
00af5154
Glyphack Move infer_subscript_type_expression to type annotation inference impl
b821a32a
Glyphack Move comment about inferring Literal parameters to right place
8c12696b
Glyphack Update crates/red_knot_python_semantic/src/types/infer.rs
1c90a58d
Glyphack Merge branch 'literal-type' of github.com:Glyphack/ruff into literal-…
a3be3d5a
Glyphack Apply comments
89f5a9b0
Glyphack Glyphack requested a review from sharkdp sharkdp 1 year ago
Glyphack Update test description
6b056170
Glyphack Reformat literal test
6830f388
Glyphack Remove assignment to infer type from annotation
93c8e4dc
Glyphack Replace Type::Instance(class) with Type::Instance(instance)
b618fad4
Glyphack Reorder test cases for Literal
38ada284
Glyphack Revert unnecessary change
4f6ec8c6
Glyphack Fix converting ClassLiteral to Instance
be1a6170
Glyphack Remove is_known_class from instance type
3c937ef5
Glyphack Unpack class type when matching instance
eb30e9b4
Glyphack Use InstanceType::anonymous method
2b78629b
Glyphack Reformat code
95a71183
Glyphack
Glyphack commented on 2024-11-02
Glyphack Update crates/red_knot_python_semantic/src/types/builder.rs
bb59ec86
Glyphack
Glyphack commented on 2024-11-02
Glyphack Update crates/red_knot_python_semantic/src/types/infer.rs
a6756959
Glyphack Merge branch 'main' into literal-type
1be6c403
Glyphack Fix
2b6cb4b6
Glyphack Reorder imports
fa37e423
Glyphack Reformat test
67c1deba
Glyphack Fix infer type for todo cases
47c9d2b3
Glyphack Glyphack requested a review from AlexWaygood AlexWaygood 1 year ago
Glyphack Glyphack requested a review from carljm carljm 1 year ago
AlexWaygood
AlexWaygood commented on 2024-11-04
AlexWaygood
AlexWaygood commented on 2024-11-04
Glyphack Apply suggestions from code review
9a73ab2d
carljm Merge branch 'main' into literal-type
d1f5d823
carljm fix wrong-Literal test
8880e2ea
carljm display Literal differently from _SpecialForm
2d6c97ea
carljm
carljm commented on 2024-11-05
carljm Merge branch 'main' into literal-type
06d550d7
carljm improve error handling
1d081dd4
carljm
carljm approved these changes on 2024-11-05
carljm tighten up handling of nested Literal
cf71e88a
carljm carljm enabled auto-merge (squash) 1 year ago
carljm carljm merged 9dddd73c into main 1 year ago
Glyphack Glyphack deleted the literal-type branch 1 year ago
Glyphack

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone