Clj

Latest version: v0.3.1

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

Scan your dependencies

Page 1 of 2

0.3.1

* Add `clj.partition_by`
* Add `clj.seq_gen` as an equivalent of `seq` that returns a generator rather than a sequence

0.3.0

Breaking change

* `nth` no longer accepts negative indices (this mimics the Clojure function).

Other changes

* `nth` doesn’t try to consume its argument if a negative index is given.
The type hint of the parameter `not_found` is now correct.
* Ensure `clj/py.typed` is included in the package
* Eliminate an internal function call in `is_odd`
* Improve some type hints
* Remove deprecated `setup.py`

0.2.1

* Add `clj/py.typed` to indicate we support type checking (PEP 561)
* Fix the version in `pyproject.toml`

0.2.0

Breaking changes

* Drop support for Python 2.x
* Drop support for Python 3.6 and below
* No longer accept `None` as a valid parameter for `first`

Other changes

* Add type hints to most functions
* Add `is_even` and `is_odd`
* Make `shuffle` work on all iterables, not just lists
* Document the behavior of `last` on empty iterables
* Add `pyproject.toml` to the package

0.1.6

* Add `partition` (partial implementation)
* Remove deprecation notices.

0.1.5

* Add `dedupe` (contributed by jaihindhreddy)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.