Skip to content

Commit 61163f9

Browse files
authored
Merge branch 'main' into migrate-to-uv
2 parents 9cda2b2 + a89a44e commit 61163f9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/fossa.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
uses: actions/checkout@v6
4040

4141
- name: "Run FOSSA Scan"
42-
uses: fossas/fossa-action@v1.8.0 # Use a specific version if locking is preferred
42+
uses: fossas/fossa-action@v1.9.0 # Use a specific version if locking is preferred
4343
with:
4444
api-key: ${{ env.FOSSA_API_KEY }}
4545

4646
- name: "Run FOSSA Test"
47-
uses: fossas/fossa-action@v1.8.0 # Use a specific version if locking is preferred
47+
uses: fossas/fossa-action@v1.9.0 # Use a specific version if locking is preferred
4848
with:
4949
api-key: ${{ env.FOSSA_API_KEY }}
5050
run-tests: true

dapr/clients/grpc/_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"""
1515

1616
from enum import Enum
17-
from typing import Any, Dict, List, Optional, Tuple, Union
17+
from typing import Any, Dict, List, Optional, Tuple, Union, cast
1818

1919
from google.protobuf import json_format
2020
from google.protobuf.any_pb2 import Any as GrpcAny
21+
from google.protobuf.descriptor import Descriptor
2122
from google.protobuf.message import Message as GrpcMessage
2223
from google.protobuf.struct_pb2 import Struct
2324
from google.protobuf.wrappers_pb2 import (
@@ -63,7 +64,7 @@ def unpack(data: GrpcAny, message: GrpcMessage) -> None:
6364
"""
6465
if not isinstance(message, GrpcMessage):
6566
raise ValueError('output message is not protocol buffer message object')
66-
if not data.Is(message.DESCRIPTOR):
67+
if not data.Is(cast(Descriptor, message.DESCRIPTOR)):
6768
raise ValueError(f'invalid type. serialized message type: {data.type_url}')
6869
data.Unpack(message)
6970

0 commit comments

Comments
 (0)