Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The sphinx plugin doesn't seem to work with sphinx-autodoc-typehints and sphinx-autodoc-defaultargs #33

Open
red8888 opened this issue Jan 6, 2023 · 1 comment

Comments

@red8888
Copy link

red8888 commented Jan 6, 2023

I use these extensions:

They work for regular public functions, but anything annotated with @task doesn't pull in the type hint and default value from the function definition.

Is it possible to configure the invoke ext to work with this somehow?

I should add I'm using this guys code snippet to patch in support for type hints in the first place: pyinvoke/invoke#357 (comment)

@kasium
Copy link

kasium commented Nov 22, 2023

@red8888 I had a similar issue and created https://github.com/SAP/invoke-plugin-for-sphinx for this.
Disclaimer: I'm the author of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants