Pydash

Latest version: v8.0.1

Safety actively analyzes 622295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 13

8.0.1

-------------------

- Fix issue where too many arguments were passed to stdlib's ``operator.attrgetter``, ``operator.itemgetter``, and ``operator.methodcaller`` when instances of those classes were used as callbacks to functions like ``map_``, ``filter_``, etc. due to a bug introduced in Python 3.12.3 and 3.11.9 that reported an incorrect signature for those ``operator`` class instances.

8.0.0

-------------------

- Add functions (Thanks DeviousStoat_!):

- ``apply`` (previously named ``thru``)
- ``apply_catch``
- ``apply_if``
- ``apply_if_not_none``
- ``eq_cmp``
- ``gt_cmp``
- ``gte_cmp``
- ``in_range_cmp``
- ``is_equal_cmp``
- ``is_equal_with_cmp``
- ``is_instance_of_cmp``
- ``is_match_cmp``
- ``is_match_with_cmp``
- ``is_monotone_cmp``
- ``lt_cmp``
- ``lte_cmp``

- Rename function ``thru`` to ``apply``. Thanks DeviousStoat_! (**breaking change**)
- Changed ``zip_``, ``unzip``, ``zip_with``, ``unzip_with`` and ``to_pairs`` to accept iterables of tuples instead of lists and return lists of tuples instead of lists of lists. Thanks DeviousStoat_! (**breaking change**)
- Fixed bug in ``divide``, ``multiply``, and ``subtract`` that returned the wrong result when ``0`` was used as one of the operation values. Thanks DeviousStoat_!

7.0.7

-------------------

- Fix bug in function wrappers that incorrectly computed the number of arguments the wrapped function could handle. Thanks DeviousStoat_!
- Fix bug in ``set_`` where the incorrect object type, list instead of dict, was initialized on class attributes. Thanks DeviousStoat_!
- Drop support for Python 3.7.

7.0.6

-------------------

- Fix typing for chaining interface for methods that use varargs. Thanks DeviousStoat_!

7.0.5

-------------------

- Fix typing for ``find_index`` and ``find_last_index`` by allowing ``predicate`` argument to be callback shorthand values. Thanks DeviousStoat_!

7.0.4

-------------------

- Exclude incompatible ``typing-extensions`` version ``4.6.0`` from install requirements. Incompatibility was fixed in ``4.6.1``.

Page 1 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.