Skip to content

Commit bffb749

Browse files
committed
autoformat with ruff
Signed-off-by: Bernd Verst <github@bernd.dev>
1 parent 128bcdc commit bffb749

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

dapr/aio/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async def __aexit__(self, exc_type, exc_value, traceback) -> None:
215215

216216
@staticmethod
217217
def _get_http_extension(
218-
http_verb: str, http_querystring: Optional[MetadataTuple] = None
218+
http_verb: str, http_querystring: Optional[MetadataTuple] = None
219219
) -> common_v1.HTTPExtension: # type: ignore
220220
verb = common_v1.HTTPExtension.Verb.Value(http_verb) # type: ignore
221221
http_ext = common_v1.HTTPExtension(verb=verb)

dapr/clients/grpc/_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,9 @@ class ConfigurationResponse(DaprResponse):
648648
- items (Mapping[Text, ConfigurationItem]): state's data.
649649
"""
650650

651-
def __init__(self, items: Mapping[Text, common_v1.ConfigurationItem], headers: MetadataTuple = ()):
651+
def __init__(
652+
self, items: Mapping[Text, common_v1.ConfigurationItem], headers: MetadataTuple = ()
653+
):
652654
"""Initializes ConfigurationResponse from :obj:`runtime_v1.GetConfigurationResponse`.
653655
654656
Args:
@@ -704,7 +706,9 @@ def _read_subscribe_config(
704706
handler: Callable[[Text, ConfigurationResponse], None],
705707
):
706708
try:
707-
responses: List[api_v1.SubscribeConfigurationResponse] = stub.SubscribeConfigurationAlpha1(req)
709+
responses: List[
710+
api_v1.SubscribeConfigurationResponse
711+
] = stub.SubscribeConfigurationAlpha1(req)
708712
isFirst = True
709713
for response in responses:
710714
if isFirst:

dapr/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def __exit__(self, exc_type, exc_value, traceback) -> None:
213213

214214
@staticmethod
215215
def _get_http_extension(
216-
http_verb: str, http_querystring: Optional[MetadataTuple] = None
216+
http_verb: str, http_querystring: Optional[MetadataTuple] = None
217217
) -> common_v1.HTTPExtension: # type: ignore
218218
verb = common_v1.HTTPExtension.Verb.Value(http_verb) # type: ignore
219219
http_ext = common_v1.HTTPExtension(verb=verb)

0 commit comments

Comments
 (0)