mm-std 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl
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.
mm_std/config.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import io
|
2
2
|
from pathlib import Path
|
3
|
-
from typing import Self
|
4
3
|
|
5
4
|
import yaml
|
6
5
|
from pydantic import BaseModel, ConfigDict, ValidationError
|
@@ -30,7 +29,7 @@ class BaseConfig(BaseModel):
|
|
30
29
|
return v
|
31
30
|
|
32
31
|
@classmethod
|
33
|
-
def read_config(cls, config_path: io.TextIOWrapper | str | Path, zip_password: str = "") -> Result[
|
32
|
+
def read_config[T](cls: type[T], config_path: io.TextIOWrapper | str | Path, zip_password: str = "") -> Result[T]: # nosec
|
34
33
|
try:
|
35
34
|
# is it zip archive?
|
36
35
|
if isinstance(config_path, str) and config_path.endswith(".zip"):
|
@@ -1,7 +1,7 @@
|
|
1
1
|
mm_std/__init__.py,sha256=dtYnmQP_HkWxIJvuCJGpex3RHvG2V0Ekh7oYstRQoco,2291
|
2
2
|
mm_std/command.py,sha256=ze286wjUjg0QSTgIu-2WZks53_Vclg69UaYYgPpQvCU,1283
|
3
3
|
mm_std/concurrency.py,sha256=4kKLhde6YQYsjJJjH6K5eMQj6FtegEz55Mo5TmhQMM0,5242
|
4
|
-
mm_std/config.py,sha256=
|
4
|
+
mm_std/config.py,sha256=qXvUqA_hvLyKSaCrt_gtEJKRI1jRFw3Nq3oEhalQYj8,2285
|
5
5
|
mm_std/crypto.py,sha256=jdk0_TCmeU0pPXMyz9xH6kQHSjjZ9GcGClBwQps5vBo,340
|
6
6
|
mm_std/date.py,sha256=976eEkSONuNqHQBgSRu8hrtH23tJqztbmHFHLdbP2TY,1879
|
7
7
|
mm_std/dict.py,sha256=kJBPVG9vEqHiSgKKoji8gVGL1yEBbxAmFNn0zz17AUg,180
|
@@ -18,6 +18,6 @@ mm_std/result.py,sha256=w2Y1dji0LozcJpPMnFkqN0UbxJUm1C8Kc5ZB1vLXx20,7443
|
|
18
18
|
mm_std/str.py,sha256=jS7VAI7i_a3iqnfaW4Iw2LZRTv0Tml4kmMbP2S2IUF4,3067
|
19
19
|
mm_std/types_.py,sha256=hvZlnvBWyB8CL_MeEWWD0Y0nN677plibYn3yD-5g7xs,99
|
20
20
|
mm_std/zip.py,sha256=2EXcae4HO5U4kObj2Lj8jl5F2OUpT-WRlJybTyFzt6I,370
|
21
|
-
mm_std-0.1.
|
22
|
-
mm_std-0.1.
|
23
|
-
mm_std-0.1.
|
21
|
+
mm_std-0.1.11.dist-info/METADATA,sha256=sXI3xGl2sE5Z-gh_wHLVqDOhT0jymzXZimdaPYKO3O0,307
|
22
|
+
mm_std-0.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
23
|
+
mm_std-0.1.11.dist-info/RECORD,,
|
File without changes
|