Skip to content

Commit

Permalink
autoformat with ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Verst <[email protected]>
  • Loading branch information
berndverst committed Jul 3, 2024
1 parent 128bcdc commit bffb749
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dapr/aio/clients/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async def __aexit__(self, exc_type, exc_value, traceback) -> None:

@staticmethod
def _get_http_extension(
http_verb: str, http_querystring: Optional[MetadataTuple] = None
http_verb: str, http_querystring: Optional[MetadataTuple] = None
) -> common_v1.HTTPExtension: # type: ignore
verb = common_v1.HTTPExtension.Verb.Value(http_verb) # type: ignore
http_ext = common_v1.HTTPExtension(verb=verb)
Expand Down
8 changes: 6 additions & 2 deletions dapr/clients/grpc/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ class ConfigurationResponse(DaprResponse):
- items (Mapping[Text, ConfigurationItem]): state's data.
"""

def __init__(self, items: Mapping[Text, common_v1.ConfigurationItem], headers: MetadataTuple = ()):
def __init__(
self, items: Mapping[Text, common_v1.ConfigurationItem], headers: MetadataTuple = ()
):
"""Initializes ConfigurationResponse from :obj:`runtime_v1.GetConfigurationResponse`.
Args:
Expand Down Expand Up @@ -704,7 +706,9 @@ def _read_subscribe_config(
handler: Callable[[Text, ConfigurationResponse], None],
):
try:
responses: List[api_v1.SubscribeConfigurationResponse] = stub.SubscribeConfigurationAlpha1(req)
responses: List[

Check warning on line 709 in dapr/clients/grpc/_response.py

View check run for this annotation

Codecov / codecov/patch

dapr/clients/grpc/_response.py#L709

Added line #L709 was not covered by tests
api_v1.SubscribeConfigurationResponse
] = stub.SubscribeConfigurationAlpha1(req)
isFirst = True
for response in responses:
if isFirst:
Expand Down
2 changes: 1 addition & 1 deletion dapr/clients/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __exit__(self, exc_type, exc_value, traceback) -> None:

@staticmethod
def _get_http_extension(
http_verb: str, http_querystring: Optional[MetadataTuple] = None
http_verb: str, http_querystring: Optional[MetadataTuple] = None
) -> common_v1.HTTPExtension: # type: ignore
verb = common_v1.HTTPExtension.Verb.Value(http_verb) # type: ignore
http_ext = common_v1.HTTPExtension(verb=verb)
Expand Down

0 comments on commit bffb749

Please sign in to comment.