Skip to content

Conversation

@junrushao
Copy link
Member

Depends on #35.

Previously Array and Map types, despite that they inherit from collections.abc.Sequence and Mapping, are not properly parameterized. This PR makes it work.

Previously `Array` and `Map` types, despite that they inherit from
`collections.abc.Sequence` and `Mapping`, are not properly
parameterized. This PR makes it work.
@junrushao junrushao force-pushed the 2025-09-21/ty-list-map branch from 09f7273 to 6c67ed7 Compare September 22, 2025 20:56
@junrushao junrushao marked this pull request as ready for review September 22, 2025 20:56
@junrushao junrushao requested review from tqchen and yzh119 September 22, 2025 20:56
@tqchen tqchen merged commit df58a05 into apache:main Sep 22, 2025
6 checks passed
tqchen pushed a commit that referenced this pull request Sep 23, 2025
This PR fixes a behavioral inconsistency between existing TVM stack and
the latest `main`.

Originally, slicing a `tvm_ffi.Array[T]` always returns `list[T]`. This
behavior was altered by PR #37, which instead returns `Array[T]`,
breaking a few unittests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants