Page MenuHomeSolus

Update python-wrapt to 1.12.1 and drop python2

Authored by algent on Jan 23 2021, 8:35 PM.



All packages using python-wrapt are build with python3.


  • Applying a function wrapper to a static method of a class using the wrap_function_wrapper() function, or wrapper for the same, wasn’t being done correctly when the static method was the immediate child of the target object. It was working when the name path had multiple name components. A failure would subsequently occur when the static method was called via an instance of the class, rather than the class.
  • Provided that you only want to support Python 3.7, when deriving from a base class which has a decorator applied to it, you no longer need to access the true type of the base class using __wrapped__ in the inherited class list of the derived class.
  • When using the synchronized decorator on instance methods of a class, if the class declared special methods to override the result for when the class instance was tested as a boolean so that it returned False all the time, the synchronized method would fail when called.
  • When using an adapter function to change the signature of the decorated function, inspect.signature() was returning the wrong signature when an instance method was inspected by accessing the method via the class type.

Signed-off-by: Algent Albrahimi <>

Test Plan
  • Build tests pass succesfully.
  • Rebuild tensorflow and python-astroid against this package.

Diff Detail

R3704 python-wrapt
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Jan 23 2021, 8:35 PM
algent requested review of this revision.Jan 23 2021, 8:35 PM
algent updated this revision to Diff 25231.Jan 31 2021, 12:04 PM

Add new abi_ files

JoshStrobl accepted this revision.Feb 5 2021, 7:19 AM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Feb 5 2021, 7:19 AM
This revision was automatically updated to reflect the committed changes.