Skip to content

Commit 1dd3e64

Browse files
chore(internal): codegen related update (#399)
1 parent 3bdf646 commit 1dd3e64

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
@@ -386,18 +386,19 @@ can also get all the extra fields on the Pydantic model as a dict with
386386

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

389-
- Support for proxies
390-
- Custom transports
389+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
390+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
391391
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
392392

393393
```python
394+
import httpx
394395
from openlayer import Openlayer, DefaultHttpxClient
395396

396397
client = Openlayer(
397398
# Or use the `OPENLAYER_BASE_URL` env var
398399
base_url="http://my.test.server.example.com:8083",
399400
http_client=DefaultHttpxClient(
400-
proxies="http://my.test.proxy.example.com",
401+
proxy="http://my.test.proxy.example.com",
401402
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
402403
),
403404
)

requirements-dev.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ pluggy==1.5.0
7474
# via pytest
7575
pyarrow==14.0.1
7676
# via openlayer
77-
pydantic==2.9.2
77+
pydantic==2.10.3
7878
# via openlayer
79-
pydantic-core==2.23.4
79+
pydantic-core==2.27.1
8080
# via pydantic
8181
pygments==2.18.0
8282
# via rich

requirements.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ pandas==2.2.2
4242
# via openlayer
4343
pyarrow==14.0.1
4444
# via openlayer
45-
pydantic==2.9.2
45+
pydantic==2.10.3
4646
# via openlayer
47-
pydantic-core==2.23.4
47+
pydantic-core==2.27.1
4848
# via pydantic
4949
python-dateutil==2.9.0.post0
5050
# via pandas

src/openlayer/_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)