Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdf6bd6

Browse files
committed
mypy
1 parente2d7fa7 commitfdf6bd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎google/api_core/grpc_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __next__(self) -> P:
128128
response_payload=google.protobuf.json_format.MessageToJson(result)
129129
else:
130130
response_payload= (
131-
f"{type(result).__name__}:{pickle.dumps(result)}"
131+
f"{type(result).__name__}:{str(pickle.dumps(result))}"
132132
)
133133
grpc_response= {
134134
"payload":response_payload,

‎google/api_core/grpc_helpers_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async def read(self) -> P:
109109
response_payload=google.protobuf.json_format.MessageToJson(result)
110110
else:
111111
response_payload= (
112-
f"{type(result).__name__}:{pickle.dumps(result)}"
112+
f"{type(result).__name__}:{str(pickle.dumps(result))}"
113113
)
114114
grpc_response= {
115115
"payload":response_payload,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp