summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_functional.py
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2019-05-03 13:24:43 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-12 05:33:02 +0200
commitb214845f0f8d973e527e41730ca5770fad51ec5d (patch)
tree0bccce475a629832d4a529a0ed025b232dd04bf7 /tests/utils_tests/test_functional.py
parente0e0204477e47a9f8c3302236a31a42514b94c25 (diff)
Improved order of methods in proxy class in lazy().
This order reads more naturally and puts methods into three groups: 1. The methods required to support the implementation of __proxy__, e.g. __deepcopy__ doesn't come from `object` and __reduce__ is overridden to support behavior required explicitly for pickling of lazy objects. 2. Methods that are specifically overridden from `object` which we don't want to inherit from the provided resultclasses. These will be skipped later when we add methods from the resultclasses. 3. Additional methods - that is _add__, __radd__, and __mod__ - don't come from `object`, but typically from `str` and `int` which are the most common use cases. Co-authored-by: Nick Pope <nick@nickpope.me.uk>
Diffstat (limited to 'tests/utils_tests/test_functional.py')
0 files changed, 0 insertions, 0 deletions