-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix crash on annotating something as
typing.Callable
Probably related: https://bugs.python.org/issue42195 Traceback: ... File "~/pdoc/pdoc/__init__.py", line 1296, in _formatannotation return str(inspect.formatannotation(maybe_replace_reprs(annot))) File "python3.7/inspect.py", line 1194, in formatannotation return repr(annotation).replace('typing.', '') File "python3.7/typing.py", line 648, in __repr__ return (f'typing.Callable' IndexError: tuple index out of range
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters