sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

Support syntax def myfunc(arg: "float64[:,:]"):

Open paugier opened this issue 2 years ago • 1 comments

I get a lot of warnings like

`WARNING: could not parse arglist ('arg: float64[:,:]'): Unable to parse Slice object`

as soon as I use Transonic / Pythran syntax in annotations, i.e. for code like:

Ac = "float64[:,:]"

def myfunc(arg: Ac):
   ...

This is a correct syntax for code annotations, so it would be nice to at least have no warning in this case.

Note that the rendered documentation is correct for such case. The problem is really the warnings.

paugier avatar Sep 12 '22 19:09 paugier

A PR is welcome.

A

AA-Turner avatar Sep 24 '22 13:09 AA-Turner