Skip to content

Commit

Permalink
Return self in grpc client to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelboulton committed Jan 27, 2024
1 parent 875e522 commit 963caa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tavern/_plugins/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ def _make_call_request(

return self._get_grpc_service(channel, service, method)

def __enter__(self) -> None:
def __enter__(self) -> "GRPCClient":
logger.debug("Connecting to GRPC")
return self

def call(
self,
Expand Down

0 comments on commit 963caa7

Please sign in to comment.