Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "monite"

[tool.poetry]
name = "monite"
version = "0.5.2"
version = "0.5.3"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/monite/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/monite/core/pydantic_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down