Skip to content

Commit 2b28fc6

Browse files
chore(internal): codegen related update (#72)
1 parent dec3073 commit 2b28fc6

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,19 @@ can also get all the extra fields on the Pydantic model as a dict with
288288

289289
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
290290

291-
- Support for proxies
292-
- Custom transports
291+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
292+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
293293
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
294294

295295
```python
296+
import httpx
296297
from lumaai import LumaAI, DefaultHttpxClient
297298

298299
client = LumaAI(
299300
# Or use the `LUMAAI_BASE_URL` env var
300301
base_url="http://my.test.server.example.com:8083",
301302
http_client=DefaultHttpxClient(
302-
proxies="http://my.test.proxy.example.com",
303+
proxy="http://my.test.proxy.example.com",
303304
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
304305
),
305306
)

requirements-dev.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ platformdirs==3.11.0
6262
# via virtualenv
6363
pluggy==1.5.0
6464
# via pytest
65-
pydantic==2.9.2
65+
pydantic==2.10.3
6666
# via lumaai
67-
pydantic-core==2.23.4
67+
pydantic-core==2.27.1
6868
# via pydantic
6969
pygments==2.18.0
7070
# via rich

requirements.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ httpx==0.25.2
3030
idna==3.4
3131
# via anyio
3232
# via httpx
33-
pydantic==2.9.2
33+
pydantic==2.10.3
3434
# via lumaai
35-
pydantic-core==2.23.4
35+
pydantic-core==2.27.1
3636
# via pydantic
3737
sniffio==1.3.0
3838
# via anyio

src/lumaai/_types.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,8 @@ def get(self, __key: str) -> str | None: ...
192192
StrBytesIntFloat = Union[str, bytes, int, float]
193193

194194
# Note: copied from Pydantic
195-
# https://github.com/pydantic/pydantic/blob/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49
196-
IncEx: TypeAlias = Union[
197-
Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]]
198-
]
195+
# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79
196+
IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]]
199197

200198
PostParser = Callable[[Any], Any]
201199

0 commit comments

Comments
 (0)