Skip to content

Commit b4a64cd

Browse files
committed
fix: dependency
1 parent 3199b91 commit b4a64cd

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ python:
2020
additionalDependencies:
2121
dev: {}
2222
main:
23-
- "requests>=2.31.0"
23+
- "requests"
2424
authors:
2525
- Speakeasy
2626
clientServerStatusCodesAsErrors: true

src/apideck_unify/_hooks/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def before_request(
1212
_: BeforeRequestContext,
1313
request: requests.PreparedRequest
1414
) -> Union[requests.PreparedRequest, Exception]:
15-
# modify the request object before it is sent, such as adding headers
1615
api_key = request.headers.get("Authorization")
1716
request.headers["Authorization"] = f"Bearer {api_key}"
1817
return request

src/apideck_unify/_hooks/registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ def init_hooks(hooks: Hooks):
1111
"""Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
1212
with an instance of a hook that implements that specific Hook interface
1313
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance"""
14-
hooks.register_before_request_hook(AuthHook())
14+
hooks.register_before_request_hook(AuthHook())

0 commit comments

Comments
 (0)