15
0
forked from pool/python-atom

- update to 0.10.0:

* AtomMeta: create the class only once all members have been
    customized
    This allows to use ``__init_subclass__`` since previously the
    ``__atom_members__`` was not set when ``__init_subclass__``
    was called 
  * illustrate the use of ``__init_subclass__`` to customize
    pickling
  * refactor the metaclass to make it easier to reason about
  * add a ``DefaultDict`` member which enforce the value to be a
    dictionary and use a factory for missing keys. The factory
    is set at the member level and a normal dict can be provided
    as value. When possible the factory is deduced from the member
    used for validation.
  * infer the use of ``DefaultDict`` from a
    ``collections.defaultdict`` annotation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atom?expand=0&rev=18
This commit is contained in:
2023-05-09 19:29:52 +00:00
committed by Git OBS Bridge
parent c08513b356
commit 61d13ba3a5
4 changed files with 24 additions and 4 deletions

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue May 9 19:28:45 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.10.0:
* AtomMeta: create the class only once all members have been
customized
This allows to use ``__init_subclass__`` since previously the
``__atom_members__`` was not set when ``__init_subclass__``
was called
* illustrate the use of ``__init_subclass__`` to customize
pickling
* refactor the metaclass to make it easier to reason about
* add a ``DefaultDict`` member which enforce the value to be a
dictionary and use a factory for missing keys. The factory
is set at the member level and a normal dict can be provided
as value. When possible the factory is deduced from the member
used for validation.
* infer the use of ``DefaultDict`` from a
``collections.defaultdict`` annotation
-------------------------------------------------------------------
Sun Apr 16 16:47:35 UTC 2023 - Dirk Müller <dmueller@suse.com>