[tensor-shapes] Can we just use `*Shape` instead of `*Elements[Shape]`?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing the tensor-shapes handling of Elements, direct tuple types such as tuple[A, B], and IntTuple, then read the linked discussion for the intended constraints. Done means valid tuple types can be splatted directly without Elements, with behavior and tests covering the existing cases.
Written by the indexing model from the issue text.
Description
I'm pretty sure that *tuple[A, B] has no meaning today, nor does *T where T: tuple. And similarly for IntTuple.
If that's the case, and we're confident it will continue to be, then Elements might be unnecessary. We can probably just allow the tuple type itself to be splatted directly. That would make code that actually needs such splats quite a bit more compact
Inspired by @TimothyEDawson's observation in https://github.com/facebook/pyrefly/discussions/4807
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 521
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebook/pyrefly
-
Difficulty 2/5 Half a day Newbie friendliness 68/100
-
typechecking
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
False positive `unexpected-keyword` for inherited SQLAlchemy mapped columns in `Update.values()` Opensqlalchemy typechecking
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in facebook/pyrefly
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100