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

fixed a bug where `wraps` would sometimes fail with RecursionError v2.11.35

parent e5328bdd
No related branches found
No related tags found
No related merge requests found
# v2.11.35
* added `ListWrapperIterator`
* fixed a bug where `wraps` would sometimes fail with RecursionError
__version__ = '2.11.35_a4'
__version__ = '2.11.35'
......@@ -116,10 +116,9 @@ def wraps(cls_to_wrap: tp.Type) -> tp.Callable[[tp.Type], tp.Type]:
cls.__annotations__ = cls_to_wrap.__annotations__
try:
sig = inspect.signature(cls_to_wrap)
except (TypeError, ValueError):
pass
else:
cls.__signature__ = sig
except (TypeError, ValueError, RecursionError):
pass
return cls
return outer
......
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