Fix the fallback value of annotations

This commit is contained in:
Takeshi KOMIYA 2017-06-17 20:13:33 +09:00
parent 6ec959c026
commit 67f5c332f0

View File

@ -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