adiumentum 0.3.2__tar.gz → 0.3.3__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.
Files changed (25) hide show
  1. {adiumentum-0.3.2 → adiumentum-0.3.3}/PKG-INFO +1 -1
  2. {adiumentum-0.3.2 → adiumentum-0.3.3}/pyproject.toml +1 -1
  3. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/pydantic_extensions.py +9 -3
  4. {adiumentum-0.3.2 → adiumentum-0.3.3}/README.md +0 -0
  5. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/__init__.py +0 -0
  6. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/color.py +0 -0
  7. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/comparison.py +0 -0
  8. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/converters.py +0 -0
  9. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/dependency_sorting.py +0 -0
  10. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/display.py +0 -0
  11. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/elementary_types.py +0 -0
  12. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/exceptions.py +0 -0
  13. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/file_modification_time.py +0 -0
  14. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/frozendict.py +0 -0
  15. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/functional.py +0 -0
  16. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/io_utils.py +0 -0
  17. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/markers.py +0 -0
  18. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/merge.py +0 -0
  19. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/numerical.py +0 -0
  20. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/paths_manager.py +3 -3
  21. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/performance_logging.py +0 -0
  22. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/pydantic_extensions.md +0 -0
  23. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/string_utils.py +0 -0
  24. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/timestamping.py +0 -0
  25. {adiumentum-0.3.2 → adiumentum-0.3.3}/src/adiumentum/typing_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: adiumentum
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary:
5
5
  Author: Isaac Riley
6
6
  Author-email: Isaac Riley <yelircaasi@proton.me>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "adiumentum"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  description = ""
5
5
  authors = [{name = "Isaac Riley", email = "yelircaasi@proton.me"}]
6
6
  readme = "README.md"
@@ -67,7 +67,6 @@ class AbstractCustom(ABC):
67
67
  json_schema = handler.resolve_ref_schema(json_schema)
68
68
  return json_schema
69
69
 
70
- @abstractmethod
71
70
  def __init__(self, *args, **kwargs) -> None:
72
71
  TypeError(f"Use `model_validate` to instantiate {self.__class__.__name__}")
73
72
 
@@ -259,7 +258,6 @@ class AbstractCustom(ABC):
259
258
  return cls.post_validation_hook(validated)
260
259
 
261
260
  @classmethod
262
- @abstractmethod
263
261
  def model_validate_strings(
264
262
  cls,
265
263
  obj: Any,
@@ -269,7 +267,15 @@ class AbstractCustom(ABC):
269
267
  context: Any | None = None,
270
268
  by_alias: bool | None = None,
271
269
  by_name: bool | None = None,
272
- ) -> Self: ...
270
+ ) -> Self:
271
+ return cls.model_validate(
272
+ obj,
273
+ strict=strict,
274
+ extra=extra,
275
+ context=context,
276
+ by_alias=by_alias,
277
+ by_name=by_name,
278
+ )
273
279
 
274
280
  @property
275
281
  def __annotations__(self) -> dict[str, Any]: # type: ignore
File without changes
@@ -23,16 +23,16 @@ from pydantic import BaseModel
23
23
 
24
24
 
25
25
  class PathsManager(BaseModel, ABC):
26
- @abstractmethod
27
26
  @classmethod
27
+ @abstractmethod
28
28
  def create(cls, *args, **kwargs) -> Self:
29
29
  """
30
30
  Create directories first if they do not already exist.
31
31
  """
32
32
  ...
33
33
 
34
- @abstractmethod
35
34
  @classmethod
35
+ @abstractmethod
36
36
  def auto(cls, root_dir: Path, **kwargs) -> Self:
37
37
  """
38
38
  Create directories and files in the default location if they do not alreay exist.
@@ -40,8 +40,8 @@ class PathsManager(BaseModel, ABC):
40
40
  ...
41
41
 
42
42
 
43
- @abstractmethod
44
43
  @classmethod
44
+ @abstractmethod
45
45
  def read(cls, config_file_path: Path) -> Self:
46
46
  ...
47
47