From ac1c508e5f9050f7897b4fd10eeb514082538ce3 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 9 May 2025 17:02:33 +0000 Subject: [PATCH] SDK regeneration --- README.md | 3 ++- pyproject.toml | 2 +- requirements.txt | 2 +- src/monite/core/client_wrapper.py | 4 ++-- src/monite/core/pydantic_utilities.py | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fada801..3581edd 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,8 @@ import asyncio client = AsyncMonite(monite_version="YOUR_MONITE_VERSION", monite_entity_id="YOUR_MONITE_ENTITY_ID", token="YOUR_TOKEN", ) async def main() -> None: await client.products.create(name='name', ) -asyncio.run(main())``` +asyncio.run(main()) +``` ## Exception Handling diff --git a/pyproject.toml b/pyproject.toml index 6a8973a..7e8d533 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "monite" [tool.poetry] name = "monite" -version = "0.5.2" +version = "0.5.3" description = "" readme = "README.md" authors = [] diff --git a/requirements.txt b/requirements.txt index f502f1b..170f512 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ httpx>=0.21.2 pydantic>= 1.9.2 -pydantic-core==^2.18.2 +pydantic-core==2.18.2 typing_extensions>= 4.0.0 diff --git a/src/monite/core/client_wrapper.py b/src/monite/core/client_wrapper.py index c97465d..11b507c 100644 --- a/src/monite/core/client_wrapper.py +++ b/src/monite/core/client_wrapper.py @@ -24,10 +24,10 @@ def __init__( def get_headers(self) -> typing.Dict[str, str]: headers: typing.Dict[str, str] = { - "User-Agent": "monite/0.5.2", + "User-Agent": "monite/0.5.3", "X-Fern-Language": "Python", "X-Fern-SDK-Name": "monite", - "X-Fern-SDK-Version": "0.5.2", + "X-Fern-SDK-Version": "0.5.3", } headers["x-monite-version"] = self._monite_version if self._monite_entity_id is not None: diff --git a/src/monite/core/pydantic_utilities.py b/src/monite/core/pydantic_utilities.py index 60a2c71..0360ef4 100644 --- a/src/monite/core/pydantic_utilities.py +++ b/src/monite/core/pydantic_utilities.py @@ -181,7 +181,7 @@ def deep_union_pydantic_dicts(source: Dict[str, Any], destination: Dict[str, Any if IS_PYDANTIC_V2: - class V2RootModel(UniversalBaseModel, pydantic.RootModel): # type: ignore[name-defined, type-arg] + class V2RootModel(UniversalBaseModel, pydantic.RootModel): # type: ignore[misc, name-defined, type-arg] pass UniversalRootModel: TypeAlias = V2RootModel # type: ignore[misc]