tilebox-grpc 0.46.0__tar.gz → 0.47.0__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.
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/PKG-INFO +1 -1
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/error.py +1 -1
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/replay.py +3 -3
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/pyproject.toml +0 -1
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/.gitignore +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/README.md +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/__init__.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/__init__.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/channel.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/error.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/pagination.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/producer_consumer.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/aio/syncify.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/channel.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/pagination.py +0 -0
- {tilebox_grpc-0.46.0 → tilebox_grpc-0.47.0}/_tilebox/grpc/producer_consumer.py +0 -0
|
@@ -57,7 +57,7 @@ def with_pythonic_errors(stub: Stub, async_funcs: bool = False) -> Stub:
|
|
|
57
57
|
wrap_func = _wrap_rpc if not async_funcs else _async_wrap_rpc
|
|
58
58
|
for name, rpc in stub.__dict__.items():
|
|
59
59
|
if callable(rpc):
|
|
60
|
-
setattr(stub, name, wrap_func(rpc))
|
|
60
|
+
setattr(stub, name, wrap_func(rpc))
|
|
61
61
|
return stub
|
|
62
62
|
|
|
63
63
|
|
|
@@ -40,7 +40,7 @@ def open_recording_channel(url: str, auth_token: str | None, recording: str | Pa
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
def open_replay_channel(recording: str | Path, assert_request_matches: bool = True) -> Channel:
|
|
43
|
-
return _ReplayChannel(recording, assert_request_matches) #
|
|
43
|
+
return _ReplayChannel(recording, assert_request_matches) # ty: ignore[invalid-return-type] # not a subclass, but same interface so works
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
class _ConcreteValue(Future):
|
|
@@ -87,7 +87,7 @@ class _RecordRPCsInterceptor(UnaryUnaryClientInterceptor):
|
|
|
87
87
|
client_call_details: ClientCallDetails,
|
|
88
88
|
request: RequestType,
|
|
89
89
|
) -> Future:
|
|
90
|
-
request_data = base64.b64encode(request.SerializeToString()) #
|
|
90
|
+
request_data = base64.b64encode(request.SerializeToString()) # ty: ignore[unresolved-attribute]
|
|
91
91
|
with self.recording.open("ab") as file:
|
|
92
92
|
method = client_call_details.method
|
|
93
93
|
if isinstance(method, str):
|
|
@@ -162,7 +162,7 @@ class _ReplayChannel:
|
|
|
162
162
|
|
|
163
163
|
if recorded_status != StatusCode.OK.value[0]: # the recorded call was an error, so raise it again
|
|
164
164
|
code = _STATUS_CODES[recorded_status]
|
|
165
|
-
error = AioRpcError(code, None, None, recorded_response.decode()) #
|
|
165
|
+
error = AioRpcError(code, None, None, recorded_response.decode()) # ty: ignore[invalid-argument-type]
|
|
166
166
|
raise error
|
|
167
167
|
|
|
168
168
|
return response_deserializer(base64.b64decode(recorded_response))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|