diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2016-04-14 20:53:24 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2016-11-02 21:43:33 +0200 |
commit | 07caa321d33857a7881a5e0a2510cba26c7bda9f (patch) | |
tree | 5580ac0c302fb3dddc7199f72179bfbb3215e1f4 /sphinx/ext/autodoc.py | |
parent | a1f6baaa8183e32e39dedede577955a2765f5d96 (diff) | |
download | sphinx-git-07caa321d33857a7881a5e0a2510cba26c7bda9f.tar.gz |
Add comment about skipping plain Callable
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index d3621e6db..d9e108eb5 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -315,6 +315,7 @@ def format_annotation(annotation): isinstance(annotation, typing.CallableMeta) and \ getattr(annotation, '__args__', None) is not None and \ hasattr(annotation, '__result__'): + # Skipped in the case of plain typing.Callable args = annotation.__args__ if args is Ellipsis: args_str = '...' |