wrapt 2.0.0rc5__py3-none-any.whl → 2.0.0rc6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wrapt might be problematic. Click here for more details.

wrapt/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
  Wrapt is a library for decorators, wrappers and monkey patching.
3
3
  """
4
4
 
5
- __version_info__ = ("2", "0", "0", "rc5")
5
+ __version_info__ = ("2", "0", "0", "rc6")
6
6
  __version__ = ".".join(__version_info__)
7
7
 
8
8
  from .__wrapt__ import (
wrapt/wrappers.py CHANGED
@@ -490,8 +490,11 @@ class ObjectProxy(with_metaclass(_ObjectProxyMetaType)): # type: ignore[misc]
490
490
  return other @ self.__wrapped__
491
491
 
492
492
  def __imatmul__(self, other):
493
- self.__wrapped__ @= other
494
- return self
493
+ if hasattr(self.__wrapped__, "__imatmul__"):
494
+ self.__wrapped__ @= other
495
+ return self
496
+ else:
497
+ return self.__object_proxy__(self.__wrapped__ @ other)
495
498
 
496
499
  def __len__(self):
497
500
  return len(self.__wrapped__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wrapt
3
- Version: 2.0.0rc5
3
+ Version: 2.0.0rc6
4
4
  Summary: Module for decorators, wrappers and monkey patching.
5
5
  Home-page: https://github.com/GrahamDumpleton/wrapt
6
6
  Author: Graham Dumpleton
@@ -1,4 +1,4 @@
1
- wrapt/__init__.py,sha256=63SajwhyAXfqtZmgp5ok0hTKnMc2coc37Zk0YLzibxE,1528
1
+ wrapt/__init__.py,sha256=4GvDdAUm7sO2zUv-Ai6tRo4TFCbZl_R3KzK59wzjfLI,1528
2
2
  wrapt/__wrapt__.py,sha256=E_Yo7fIk51_OjMzlqXKtIhvplbYbJIPcTGD20b0GWM8,1431
3
3
  wrapt/arguments.py,sha256=q4bxH7GoCXhTCgxy-AEyvSnOq0ovMSHjN7ru3HWxlhA,2548
4
4
  wrapt/decorators.py,sha256=ePWsg43Q5uHYSBGvbybwIZpsYdIhLGX9twbGZ7ygous,21091
@@ -6,9 +6,9 @@ wrapt/importer.py,sha256=E16XxhomZuX5jM_JEH4ZO-MYpNou1t5RZLJHWLCtsgM,12135
6
6
  wrapt/patches.py,sha256=WJAKwOEeozpqgLAq_BlEu2HWbjMg9yaR65szi8J4GRQ,9907
7
7
  wrapt/proxies.py,sha256=x9mergCbZIW4pplUmACkSU6iH0iWy9xNadQUoSp3ksA,10018
8
8
  wrapt/weakrefs.py,sha256=5HehYcKOKsRIghxLwnCZ4EJ67rhc0z1GH__pRILRLDc,4630
9
- wrapt/wrappers.py,sha256=xUYyI8ID4gIuUqfu4OP-d8t37SYZVducOfXEVhyhbj8,34297
10
- wrapt-2.0.0rc5.dist-info/LICENSE,sha256=mrxBqmuGkMB-3ptEt8YjPQFCkO0eO1zMN-KSKVtdBY8,1304
11
- wrapt-2.0.0rc5.dist-info/METADATA,sha256=teh16A43dj7yF1ZEq5xZV5jcUu3jGeDeqHr8o6AYj3Y,7141
12
- wrapt-2.0.0rc5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
- wrapt-2.0.0rc5.dist-info/top_level.txt,sha256=Jf7kcuXtwjUJMwOL0QzALDg2WiSiXiH9ThKMjN64DW0,6
14
- wrapt-2.0.0rc5.dist-info/RECORD,,
9
+ wrapt/wrappers.py,sha256=btpuNklFXdpnWlQVrgib1cY08M5tm1vTSd_XEjfEgxs,34439
10
+ wrapt-2.0.0rc6.dist-info/LICENSE,sha256=mrxBqmuGkMB-3ptEt8YjPQFCkO0eO1zMN-KSKVtdBY8,1304
11
+ wrapt-2.0.0rc6.dist-info/METADATA,sha256=4FQ_wTO3_Nebuuvt0e_SxmJEDoqkMI86DX4Vkafp9N0,7141
12
+ wrapt-2.0.0rc6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
+ wrapt-2.0.0rc6.dist-info/top_level.txt,sha256=Jf7kcuXtwjUJMwOL0QzALDg2WiSiXiH9ThKMjN64DW0,6
14
+ wrapt-2.0.0rc6.dist-info/RECORD,,