python-neva 2.4.0__py3-none-any.whl → 2.4.1__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.
neva/config/repository.py
CHANGED
|
@@ -7,6 +7,8 @@ nested access and can be frozen to prevent modifications after initialization.
|
|
|
7
7
|
|
|
8
8
|
from typing import Any
|
|
9
9
|
|
|
10
|
+
from typing_extensions import TypeForm
|
|
11
|
+
|
|
10
12
|
from neva import Err, Ok, Result
|
|
11
13
|
|
|
12
14
|
|
|
@@ -64,7 +66,7 @@ class ConfigRepository:
|
|
|
64
66
|
self,
|
|
65
67
|
key: str,
|
|
66
68
|
default: T | None = None,
|
|
67
|
-
type_:
|
|
69
|
+
type_: TypeForm[T] | None = None,
|
|
68
70
|
) -> Result[T, str]:
|
|
69
71
|
"""Get a configuration value using dot notation.
|
|
70
72
|
|
|
@@ -10,7 +10,7 @@ neva/arch/service_provider.py,sha256=g9tvlBNpGxdJ6yL9w6L-oPLzC6AV_Z6vLDR-TW3Kqz0
|
|
|
10
10
|
neva/config/__init__.py,sha256=Ygfnh-MRRKYDdf54_LeMSHwmck5VpNHTdnnMtGEFLtU,121
|
|
11
11
|
neva/config/base_providers.py,sha256=fK4feZWLzchpQ_xaeumtR9P2JK5nuk8Vq5O7JWkGyO8,908
|
|
12
12
|
neva/config/loader.py,sha256=ZIcx8oYIi2r4wv1G_Q7_a6nG7wARyzjiZ2wF43t3B2I,3942
|
|
13
|
-
neva/config/repository.py,sha256=
|
|
13
|
+
neva/config/repository.py,sha256=R8euDz_568739BrFt8234Q7AHQKq1r3OqATkHt7-NgE,5016
|
|
14
14
|
neva/database/__init__.py,sha256=3yYnEe8HQM86tURyAhTbMtE7AXubIEMN3GuwxkkT-bk,508
|
|
15
15
|
neva/database/config.py,sha256=bVKUqlrYDFrURqg_FbntPXyVkbOUPSVXQJTKjyucjL0,451
|
|
16
16
|
neva/database/connection.py,sha256=et1fvGxa2iHTJ8yzAv9VIYqfD4GtGaV0KQUW97SdLHQ,7107
|
|
@@ -74,6 +74,6 @@ neva/testing/fakes.py,sha256=ffAAZC7WymuutVYk3vefuPDUvpNHav2QV2lj-Gw0Kic,2666
|
|
|
74
74
|
neva/testing/fixtures.py,sha256=-l_Drw6nXTD_cKpfg1Z1pmsXnaD3NM2kihdRHxSkfzE,1657
|
|
75
75
|
neva/testing/http.py,sha256=9oKNzaz38nCKkL-ZUF5CRWFPqpNmXkqbYcoukC509_Q,494
|
|
76
76
|
neva/testing/test_case.py,sha256=FzXBHctkVkFNu46S5lnt7iRX91TLPLfL1Lzgn-iU-_E,3325
|
|
77
|
-
python_neva-2.4.
|
|
78
|
-
python_neva-2.4.
|
|
79
|
-
python_neva-2.4.
|
|
77
|
+
python_neva-2.4.1.dist-info/METADATA,sha256=CF3ghAJ-z0ilej0OLIGxFjtvcwNNKv3hrEm0Exs38ws,691
|
|
78
|
+
python_neva-2.4.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
79
|
+
python_neva-2.4.1.dist-info/RECORD,,
|
|
File without changes
|