Skip to content

Commit

Permalink
Update RequestClient init to keyword args only.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbartel committed Sep 12, 2023
1 parent 502113b commit 28d518d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/lib/communication/dmod/communication/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,10 @@ class RequestClient:
two must be set for ::method:`async_make_request` to function.
"""

def __init__(self, transport_client: TransportLayerClient, default_response_type: Optional[Type[Response]] = None,
*args, **kwargs):
def __init__(self, *,
transport_client: TransportLayerClient,
default_response_type: Optional[Type[Response]] = None,
**kwargs):
"""
Initialize.
Expand All @@ -529,7 +531,6 @@ def __init__(self, transport_client: TransportLayerClient, default_response_type
The client for handling the underlying raw OSI transport layer communications with the service.
default_response_type: Optional[Type[Response]]
Optional class type for responses, to use when no response class param is given when making a request.
args
kwargs
"""
self._transport_client = transport_client
Expand Down

0 comments on commit 28d518d

Please sign in to comment.