inducer / inducer/arraycontext

Sharpen type annotation of `_get_arg_id_to_arg_and_arg_id_to_descr`

Open
#296 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9
Forks
11
Avg merge
17h 12m
Merged PRs (30d)
2

Description

According to the type listed `args: tuple[Any, ...]`, args should be able to support an object type. However, it does not. Passing in an object that is not an `pt.Array` or `scalar` or `ArrayContainer` returns an error message. I think we should just return the descriptor as the position of the object within the `args` tuple.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate `_get_arg_id_to_arg_and_arg_id_to_descr` and inspect how it handles entries in the `args` tuple, especially objects that are not `pt.Array`, `scalar`, or `ArrayContainer`. Confirm the intended behavior for a general object, then make the descriptor use that object's position in `args` and verify that the reported error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.