You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: error while formatting arguments for example.ex1.ExampleClass: 'typing.ParamSpec' object has no attribute '__origin__'
WARNING: error while formatting signature for example.ex1.ExampleClass: Handler <function record_typehints at 0x7f8baa513c40> for event 'autodoc-process-signature' threw an exception (exception: 'typing.ParamSpec' object has no attribute '__origin__')
classExampleClass[**P]:
""" example class """def__init__(self, *args: P.args, **kwargs: P.kwargs):
...
defexample_function[**P](cls: type[ExampleClass[P]]) ->type[ExampleClass[P]]:
""" example function """returncls
Environment Information
- Python 3.12.2 on Linux x86-64 machine
- sphinx 7.2.6
Sphinx extensions
[
"sphinx.ext.autodoc"
]
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
below error occurs while buliding documentation
How to Reproduce
I prepared a minimal example for this.
https://github.com/wldhg/sphinx-paramspec
conf.py
index.rst
ex1.py
Environment Information
Sphinx extensions
[ "sphinx.ext.autodoc" ]
Additional context
No response
The text was updated successfully, but these errors were encountered: