Skip to content

Commit 21021aa

Browse files
committed
Add comment about unused args
1 parent c1ff61e commit 21021aa

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/posit/connect/hooks.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
from .errors import ClientError
77

88

9-
def handle_errors(response: Response, *args, **kwargs) -> Response: # noqa: ARG001
9+
def handle_errors(
10+
response: Response,
11+
# Arguments for the hook callback signature
12+
*request_hook_args, # noqa: ARG001
13+
**request_hook_kwargs, # noqa: ARG001
14+
) -> Response:
1015
if response.status_code >= 400:
1116
try:
1217
data = response.json()
@@ -22,7 +27,12 @@ def handle_errors(response: Response, *args, **kwargs) -> Response: # noqa: ARG
2227
return response
2328

2429

25-
def check_for_deprecation_header(response: Response, *args, **kwargs) -> Response: # noqa: ARG001
30+
def check_for_deprecation_header(
31+
response: Response,
32+
# Extra arguments for the hook callback signature
33+
*args, # noqa: ARG001
34+
**kwargs, # noqa: ARG001
35+
) -> Response:
2636
"""
2737
Check for deprecation warnings from the server.
2838

0 commit comments

Comments
 (0)