-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Type annotations using collections.abc.Callable not working ok #457
Labels
duplicate
This issue or pull request already exists
Comments
Full error traceback:
|
Ah, I seem to have re-encountered the bug that was fixed with #454 |
Fix released. Thanks! 🥂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the Python docs,
typing.Callable
is deprecated for type hinting, in favour of usingcollections.abc.Callable
. When I replaced this usage in some of my code, pdoc3 fails to produce documentation. I have a minimal example which shows the issue (this was running on Python 3.10.16 with pdoc3 0.11.5)The first function will trip pdoc3 up, with the error
TypeError: Expected a list of types, an ellipsis, ParamSpec, or Concatenate. Got (<class 'str'>,)
, while the second will be fine.The text was updated successfully, but these errors were encountered: