Skip to content

Commit fa024a5

Browse files
committed
chore(client): format
1 parent 8920408 commit fa024a5

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/writerai/_client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,9 @@ def _extract_sdk_env_headers() -> dict[str, str]:
5858
continue
5959

6060
# Strip the prefix and convert
61-
raw = key[len(_SDK_HEADER_PREFIX):]
61+
raw = key[len(_SDK_HEADER_PREFIX) :]
6262
parts = raw.split("_")
63-
canonical = "-".join(
64-
word.capitalize() if len(word) > 1 else word.upper()
65-
for word in parts
66-
)
63+
canonical = "-".join(word.capitalize() if len(word) > 1 else word.upper() for word in parts)
6764
headers[canonical] = value
6865

6966
return headers

src/writerai/resources/chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Type, Union, TypeVar, Iterable
5+
from typing import Type, Union, TypeVar, Iterable
66
from functools import partial
77
from typing_extensions import Literal, overload
88

0 commit comments

Comments
 (0)