Skip to content

Commit

Permalink
Fixed regression caused by PR #87
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jul 25, 2019
1 parent 5a0cda7 commit e21bc67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
@@ -1,3 +1,9 @@
1.7.1
=====

* Fixed regression which caused ``TypeErrors`` when trying to set annotations due to PR #87


1.7.0
=====

Expand Down
2 changes: 1 addition & 1 deletion sphinx_autodoc_typehints.py
Expand Up @@ -206,7 +206,7 @@ def get_all_type_hints(obj, name):

try:
obj.__annotations__ = rv
except AttributeError:
except (AttributeError, TypeError):
return rv

try:
Expand Down

0 comments on commit e21bc67

Please sign in to comment.