Skip to content
Snippets Groups Projects
Commit f05186ab authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

**bugfix** `@wraps` would store not a `__dict__` in `__annotations__`

parent c490cb84
No related branches found
Tags v2.14.8
No related merge requests found
# v2.14.8
* **bugfix** `@wraps` would store not a `__dict__` in `__annotations__`
__version__ = '2.14.8_a1'
__version__ = '2.14.8'
......@@ -123,7 +123,7 @@ def wraps(cls_to_wrap: tp.Type) -> tp.Callable[[tp.Type], tp.Type]:
if hasattr(cls_to_wrap, '__annotations__'):
try:
cls.__annotations__ = cls_to_wrap.__annotations__
except AttributeError:
except (AttributeError, TypeError):
pass
try:
sig = inspect.signature(cls_to_wrap)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment