inducer / inducer/arraycontext
Sharpen type annotation of `_get_arg_id_to_arg_and_arg_id_to_descr`
- Linguagem predominante
- Python
- Estrelas
- 9
- Forks
- 11
- Merge médio
- 17h 12min
- PRs com merge (30d)
- 2
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 42/100