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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tilebox-grpc
3
- Version: 0.46.0
3
+ Version: 0.47.0
4
4
  Summary: GRPC / Protocol Buffers functions for Tilebox
5
5
  Project-URL: Homepage, https://tilebox.com
6
6
  Project-URL: Documentation, https://docs.tilebox.com/
@@ -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)) # type: ignore[assignment]
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) # type: ignore[return-value]
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()) # type: ignore[attr-defined]
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()) # type: ignore[arg-type]
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))
@@ -33,7 +33,6 @@ dependencies = [
33
33
  "nest-asyncio>=1.5.0",
34
34
  ]
35
35
 
36
-
37
36
  [dependency-groups]
38
37
  dev = ["pytest-asyncio>=0.24.0", "pytest-cov>=5.0.0", "pytest>=8.3.2"]
39
38
 
File without changes
File without changes