rats-apps 0.1.3.dev30__py3-none-any.whl → 0.1.3.dev32__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.
- rats/apps/__init__.py +2 -2
- rats/apps/_annotations.py +2 -2
- {rats_apps-0.1.3.dev30.dist-info → rats_apps-0.1.3.dev32.dist-info}/METADATA +1 -1
- {rats_apps-0.1.3.dev30.dist-info → rats_apps-0.1.3.dev32.dist-info}/RECORD +5 -5
- {rats_apps-0.1.3.dev30.dist-info → rats_apps-0.1.3.dev32.dist-info}/WHEEL +0 -0
rats/apps/__init__.py
CHANGED
@@ -7,6 +7,7 @@ domain.
|
|
7
7
|
|
8
8
|
from ._annotations import (
|
9
9
|
AnnotatedContainer,
|
10
|
+
autoid,
|
10
11
|
autoid_service,
|
11
12
|
config,
|
12
13
|
container,
|
@@ -14,7 +15,6 @@ from ._annotations import (
|
|
14
15
|
fallback_group,
|
15
16
|
fallback_service,
|
16
17
|
group,
|
17
|
-
method_service_id,
|
18
18
|
service,
|
19
19
|
)
|
20
20
|
from ._composite_container import CompositeContainer
|
@@ -46,6 +46,6 @@ __all__ = [
|
|
46
46
|
"fallback_group",
|
47
47
|
"fallback_service",
|
48
48
|
"group",
|
49
|
-
"
|
49
|
+
"autoid",
|
50
50
|
"service",
|
51
51
|
]
|
rats/apps/_annotations.py
CHANGED
@@ -98,7 +98,7 @@ def service(
|
|
98
98
|
|
99
99
|
|
100
100
|
def autoid_service(fn: Callable[P, T_ServiceType]) -> Callable[P, T_ServiceType]:
|
101
|
-
_service_id =
|
101
|
+
_service_id = autoid(fn)
|
102
102
|
_add_annotation(ProviderNamespaces.SERVICES, fn, _service_id)
|
103
103
|
cached_fn = cache(fn)
|
104
104
|
return cast(Callable[P, T_ServiceType], cached_fn)
|
@@ -153,7 +153,7 @@ def _get_method_service_id_name(method: Callable[..., Any]) -> str:
|
|
153
153
|
return service_name
|
154
154
|
|
155
155
|
|
156
|
-
def
|
156
|
+
def autoid(method: Callable[..., T_ServiceType]) -> ServiceId[T_ServiceType]:
|
157
157
|
"""
|
158
158
|
Get a service id for a method.
|
159
159
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
rats/apps/__init__.py,sha256=
|
2
|
-
rats/apps/_annotations.py,sha256=
|
1
|
+
rats/apps/__init__.py,sha256=C2AHnjIf0Bf4gnrS4sO0QSEknIQXfn3X9qzknY7t9PE,1182
|
2
|
+
rats/apps/_annotations.py,sha256=MMYqJ0F6MzynwOT3ZWKiIkXwQsaD4rvkpkURP4EzZDE,6971
|
3
3
|
rats/apps/_composite_container.py,sha256=wSWVQWPin2xxIlEoSgk_D1rlc3N2gpTxQ2y9UFdqXy0,553
|
4
4
|
rats/apps/_container.py,sha256=5uiCyxN6HS2z97XcTOFP-t72cNoB1U1sJMkMcfSfDps,3129
|
5
5
|
rats/apps/_executables.py,sha256=8ITn__pjTLHo7FEb-3C6ZQrs1mow0gZn6d-24XGBSu8,1079
|
@@ -8,6 +8,6 @@ rats/apps/_namespaces.py,sha256=THUV_Xj5PtweC23Ob-zsSpk8exC4fT-qRwjpQ6IDm0U,188
|
|
8
8
|
rats/apps/_plugin_container.py,sha256=W_xQD2btc0N2dEb3c5tXM-ZZ4A4diMpkCjbOZdlXYuI,853
|
9
9
|
rats/apps/_scoping.py,sha256=plSVEq3rJ8JFAu2epVg2NQpuTbpSTA3a0Tha_DwJL_Y,1453
|
10
10
|
rats/apps/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
rats_apps-0.1.3.
|
12
|
-
rats_apps-0.1.3.
|
13
|
-
rats_apps-0.1.3.
|
11
|
+
rats_apps-0.1.3.dev32.dist-info/METADATA,sha256=F6Ra0r2ZbCi9Bb8GbRHLwTpvwPdb-qjCRm4yrsFUmlI,717
|
12
|
+
rats_apps-0.1.3.dev32.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
13
|
+
rats_apps-0.1.3.dev32.dist-info/RECORD,,
|
File without changes
|