Skip to content

Commit b085574

Browse files
committed
Lint
1 parent 3db71f8 commit b085574

4 files changed

Lines changed: 2 additions & 9 deletions

File tree

etc/tools/contributors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main() -> None:
6565
ax.set_title("shuttleai-python Contributors", fontsize=24, fontweight="bold", color="white", pad=20)
6666

6767
client = httpx.Client()
68-
for i, (username, avatar_url) in enumerate(zip(usernames, avatars)):
68+
for i, (username, avatar_url) in enumerate(zip(usernames, avatars, strict=True)):
6969
avatar_path = os.path.join(avatars_cache_dir, f"{username}.png")
7070
if not os.path.exists(avatar_path):
7171
response = client.get(avatar_url, timeout=30, headers={"Accept": "image/*"})

shuttleai/_patch.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,4 @@ def new_json(self: httpx._models.Response, **kwargs: Any) -> Any:
2727
except orjson.JSONDecodeError:
2828
return original_json(self, **kwargs)
2929

30-
setattr(
31-
httpx._models.Response,
32-
"json",
33-
types.MethodType(new_json, httpx._models.Response)
34-
)
30+
httpx._models.Response.json = types.MethodType(new_json, httpx._models.Response)

shuttleai/client/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
FunctionTool,
1515
MCPTool,
1616
ResponseFormat,
17-
Tool,
1817
)
1918

2019

shuttleai/schemas/models/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from pydantic import BaseModel
55

6-
from shuttleai.schemas.models.capabilities import Capabilities
7-
86

97
class ProxyType(str, Enum):
108
proxy = "proxy"

0 commit comments

Comments
 (0)