[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with numpydoc needed (Was: Bug#1029245: nitime: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 3.11" returned exit code 13)



* Éric Araujo <merwok@netwok.org> [2023-01-20 22:01]:
> tl;dr: replace the body of the try block with this:
> 
>     argspec = inspect.signature(inspect.getframeinfo)
>     argspec = str(argspec).replace('*', '\\*')
>     signature = '%s%s' % (func_name, argspec)

Should that not use "func" instead of "inspect.getframeinfo"?

    argspec = inspect.signature(func)
    argspec = str(argspec).replace('*', '\\*')
    signature = '%s%s' % (func_name, argspec)

- FC


Reply to: