mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix the fallback value of annotations
This commit is contained in:
parent
6ec959c026
commit
67f5c332f0
@ -273,7 +273,7 @@ class Signature(object):
|
||||
try:
|
||||
self.annotations = typing.get_type_hints(subject)
|
||||
except:
|
||||
self.annotations = None
|
||||
self.annotations = {}
|
||||
|
||||
if bound_method:
|
||||
# client gives a hint that the subject is a bound method
|
||||
|
Loading…
Reference in New Issue
Block a user