Skip to content

Commit 69774fb

Browse files
author
Harold James Quilang
committed
fix: fix lint error on globalhook
1 parent b3cde7c commit 69774fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/orq-rc/src/orq_ai_sdk/_hooks/globalhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request)
2525
else:
2626
payload['stream'] = False
2727

28-
if 'context' in payload and type(payload['context']) is dict:
28+
if 'context' in payload and isinstance(payload['context'], dict):
2929
payload['context']['environments'] = environment
3030
else:
3131
payload['context'] = {

src/orq_ai_sdk/_hooks/globalhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request)
2525
else:
2626
payload['stream'] = False
2727

28-
if 'context' in payload and type(payload['context']) is dict:
28+
if 'context' in payload and isinstance(payload['context'], dict):
2929
payload['context']['environments'] = environment
3030
else:
3131
payload['context'] = {

0 commit comments

Comments
 (0)