Skip to content

Commit 5572643

Browse files
committed
fix: linting and formatting
1 parent 8ecf253 commit 5572643

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

examples/hello_world_portkey_strands.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
try:
66
from portkey_ai.integrations.strands import PortkeyStrands
77
except Exception:
8-
print("This example requires the 'strands' extra: pip install 'portkey-ai[strands]'", file=sys.stderr)
8+
print(
9+
"This example requires the 'strands' extra: pip install 'portkey-ai[strands]'",
10+
file=sys.stderr,
11+
)
912
raise
1013

1114

@@ -18,8 +21,8 @@ async def main() -> None:
1821
sys.exit(1)
1922

2023
model = PortkeyStrands(
21-
api_key=api_key,
22-
model_id=model_id,
24+
api_key=api_key, # type: ignore[arg-type]
25+
model_id=model_id, # type: ignore[arg-type]
2326
)
2427

2528
# Minimal Strands-compatible message list (no Agent required)

portkey_ai/integrations/strands.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,18 @@
2020

2121
import json
2222
import uuid
23-
from typing import Any, AsyncGenerator, AsyncIterator, Optional, TYPE_CHECKING, cast, List, Type, TypeVar, Union
23+
from typing import (
24+
Any,
25+
AsyncGenerator,
26+
AsyncIterator,
27+
Optional,
28+
TYPE_CHECKING,
29+
cast,
30+
List,
31+
Type,
32+
TypeVar,
33+
Union,
34+
)
2435

2536
from portkey_ai import AsyncPortkey
2637

0 commit comments

Comments
 (0)