Skip to content

Releases: sassanh/python-immutable

v1.2.2

06 Jun 16:03
v1.2.2
e980b7f
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.2.2

Changes:

  • refactor: make it play nicer with pyright's reportUnhashable
  • chore: update setup-uv version in github actions to v6 to support python-version parameter

v1.2.1

06 Jun 15:49
v1.2.1
ca3aa33
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.2.1

Changes:

  • refactor: make it play nicer with pyright's reportUnhashable
  • chore: update setup-uv version in github actions to v6 to support python-version parameter

v1.2.0

18 May 06:05
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.2.0

Changes:

  • chore: replace poetry with uv, make sure python3.9+ is supported and add tests for all supported python versions in github actions
  • feat: add __call__ method to Immutable class to allow replacing attributes with new values, basically a shorthand for dataclasses.replace

v1.1.1

06 May 20:53
v1.1.1
7f80651
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.1.1

Changes:

  • fix: mark Immutable class as a dataclass to avoid TypeError when using dataclasses.replace,
    dataclasses.fields, etc.

v1.1.0

05 May 14:43
v1.1.0
8f1473a
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.1.0

Changes:

  • feat: instanced of subclasses of Immutable are now considered equal if they
    have the same attributes, in the same order, with the same values
  • refactor: the return value of make_immutable now passes issubclass(cls, Immutable)
    check and has __eq__ of Immutable
  • test: add tests

v1.0.6

05 May 11:58
v1.0.6
f177c09
Compare
Choose a tag to compare

PyPI package: https://pypi.org/project/python-immutable/1.0.6

Changes:

  • feat: add make_immutable to be on par with make_dataclass

v1.0.5

15 Mar 21:37
v1.0.5
8f5d3bc
Compare
Choose a tag to compare

Release of version 1.0.5
PyPI package: https://pypi.org/project/python-immutable/1.0.5

v1.0.4

01 Mar 17:55
v1.0.4
3a382c0
Compare
Choose a tag to compare

Release of version 1.0.4
PyPI package: https://pypi.org/project/python-immutable/1.0.4

Version 1.0.0

25 Dec 16:15
v1.0.0
758d4ef
Compare
Choose a tag to compare

Immutable classes can now be defined using immutable decorator or by inheriting from Immutable class.