Skip to content

Commit e203d14

Browse files
Linter/type check
Signed-off-by: Elena Kolevska <[email protected]>
1 parent 554a250 commit e203d14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dapr/clients/grpc/_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def key(self) -> str:
311311
return self._key
312312

313313
@property
314-
def data(self) -> Union[bytes, str]:
314+
def data(self) -> Union[bytes, str, None]:
315315
"""Gets raw data."""
316316
return self._data
317317

dapr/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def execute_state_transaction(
933933
operationType=o.operation_type.value,
934934
request=common_v1.StateItem(
935935
key=o.key,
936-
value=to_bytes(o.data) if o.data is not None else None,
936+
value=to_bytes(o.data) if o.data is not None else to_bytes(''),
937937
etag=common_v1.Etag(value=o.etag) if o.etag is not None else None,
938938
),
939939
)

0 commit comments

Comments
 (0)