pydantic-rpc 0.15.1__py3-none-any.whl → 0.15.2__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.
pydantic_rpc/core.py
CHANGED
|
@@ -565,8 +565,6 @@ def connect_obj_with_stub(
|
|
|
565
565
|
|
|
566
566
|
# Attach all RPC methods from service_obj to the concrete servicer
|
|
567
567
|
for method_name, method in get_rpc_methods(service_obj):
|
|
568
|
-
if method_name.startswith("_"):
|
|
569
|
-
continue
|
|
570
568
|
setattr(ConcreteServiceClass, method_name, implement_stub_method(method))
|
|
571
569
|
|
|
572
570
|
return ConcreteServiceClass
|
|
@@ -2326,7 +2324,7 @@ def get_rpc_methods(obj: object) -> list[tuple[str, Callable[..., Any]]]:
|
|
|
2326
2324
|
return [
|
|
2327
2325
|
(to_pascal_case(attr_name), getattr(obj, attr_name))
|
|
2328
2326
|
for attr_name in dir(obj)
|
|
2329
|
-
if inspect.ismethod(getattr(obj, attr_name))
|
|
2327
|
+
if inspect.ismethod(getattr(obj, attr_name)) and not attr_name.startswith('_')
|
|
2330
2328
|
]
|
|
2331
2329
|
|
|
2332
2330
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pydantic_rpc/__init__.py,sha256=1b57454e64c68891868ea3993af9e11100c579b56af99f4aa0f836934ddf883d,925
|
|
2
|
-
pydantic_rpc/core.py,sha256=
|
|
2
|
+
pydantic_rpc/core.py,sha256=6f76ac5331e3fb081a92aade959cdb9c9cd5252d1e0b2879e20bef920b3f398a,121869
|
|
3
3
|
pydantic_rpc/decorators.py,sha256=3ee29ded407c888793694452f0b32fbcf46aedd09b42275a2eedaffda9e0e5f4,7465
|
|
4
4
|
pydantic_rpc/mcp/__init__.py,sha256=f05ad62cc38db5c5972e16870c484523c58c5ac650d8454706f1ce4539cc7a52,123
|
|
5
5
|
pydantic_rpc/mcp/converter.py,sha256=b60dcaf82e6bff6be4b2ab8b1e9f2d16e09cb98d8f00182a4f6f73d1a78848a4,4158
|
|
@@ -7,6 +7,6 @@ pydantic_rpc/mcp/exporter.py,sha256=20833662f9a973ed9e1a705b9b59aaa2533de6c514eb
|
|
|
7
7
|
pydantic_rpc/options.py,sha256=6094036184a500b92715fd91d31ecc501460a56de47dcf6024c6335ae8e5d6e3,4561
|
|
8
8
|
pydantic_rpc/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
|
|
9
9
|
pydantic_rpc/tls.py,sha256=0eb290cc09c8ebedc71e7a97c01736d9675a314f70ebd80a2ce73e3f1689d359,3567
|
|
10
|
-
pydantic_rpc-0.15.
|
|
11
|
-
pydantic_rpc-0.15.
|
|
12
|
-
pydantic_rpc-0.15.
|
|
10
|
+
pydantic_rpc-0.15.2.dist-info/WHEEL,sha256=ab6157bc637547491fb4567cd7ddf26b04d63382916ca16c29a5c8e94c9c9ef7,79
|
|
11
|
+
pydantic_rpc-0.15.2.dist-info/METADATA,sha256=93fdff0d2d158857fc4407f578091366403faf6b3b740a95031d7b359f32e12f,36161
|
|
12
|
+
pydantic_rpc-0.15.2.dist-info/RECORD,,
|
|
File without changes
|