We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Autodoc 1.21.8 fails for a ParamSpec
HINT_CB_P = ParamSpec('HINT_CB_P') HINT_CB: TypeAlias = Callable[HINT_CB_P, Any] class MyClass): def func(self, callback: HINT_CB, *args: HINT_CB_P.args, **kwargs: HINT_CB_P.kwargs): pass
Error:
if annotation in _TYPES_DICT: TypeError: unhashable type: 'ParamSpecArgs'
sphinx-autodoc-typehints/src/sphinx_autodoc_typehints/__init__.py
Line 39 in d9c4a06
The text was updated successfully, but these errors were encountered:
FIX TypeError: unhashable type (#319)
d181c2d
Fixes #318. The access to `_TYPES_DICT` should be wrapped in a try block so that if the type is unhashable the error can be caught and discarded.
Successfully merging a pull request may close this issue.
Autodoc 1.21.8 fails for a ParamSpec
Error:
sphinx-autodoc-typehints/src/sphinx_autodoc_typehints/__init__.py
Line 39 in d9c4a06
The text was updated successfully, but these errors were encountered: