xn-model 1.0.19__tar.gz → 1.0.20__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-model
3
- Version: 1.0.19
3
+ Version: 1.0.20
4
4
  Summary: Base model for xn-api
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -6,6 +6,6 @@ from typing import ClassVar
6
6
  class BaseUpd:
7
7
  _unq: ClassVar[set[str]]
8
8
 
9
- def df_unq(self) -> dict:
10
- d = {k: v for k, v in asdict(self).items() if v is not None or k in self._unq}
9
+ def df_unq(self, **kwargs) -> dict:
10
+ d = {k: v for k, v in (asdict(self) | kwargs).items() if v is not None or k in self._unq}
11
11
  return {**{k: d.pop(k, None) for k in self._unq}, "defaults": d}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-model
3
- Version: 1.0.19
3
+ Version: 1.0.20
4
4
  Summary: Base model for xn-api
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes