diff --git a/ee/codegen/package-lock.json b/ee/codegen/package-lock.json index 2f58c753b3..f6ddcd4ae2 100644 --- a/ee/codegen/package-lock.json +++ b/ee/codegen/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vellum-ai/vellum-codegen", - "version": "1.11.13", + "version": "1.11.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vellum-ai/vellum-codegen", - "version": "1.11.13", + "version": "1.11.14", "hasInstallScript": true, "dependencies": { "@fern-api/python-ast": "^0.0.24", diff --git a/ee/codegen/package.json b/ee/codegen/package.json index e0a03f1803..a3405015bb 100644 --- a/ee/codegen/package.json +++ b/ee/codegen/package.json @@ -1,6 +1,6 @@ { "name": "@vellum-ai/vellum-codegen", - "version": "1.11.13", + "version": "1.11.14", "main": "lib/src/index.js", "typings": "lib/src/index.d.ts", "files": [ diff --git a/pyproject.toml b/pyproject.toml index a28bc8e788..8fca7d4347 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "vellum-ai" [tool.poetry] name = "vellum-ai" -version = "1.11.13" +version = "1.11.14" description = "" readme = "README.md" authors = [] diff --git a/src/vellum/client/README.md b/src/vellum/client/README.md index f0da0934b4..09d735019e 100644 --- a/src/vellum/client/README.md +++ b/src/vellum/client/README.md @@ -226,7 +226,7 @@ from vellum import Vellum client = Vellum( ..., httpx_client=httpx.Client( - proxies="http://my.test.proxy.example.com", + proxy="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ), ) diff --git a/src/vellum/client/core/force_multipart.py b/src/vellum/client/core/force_multipart.py index ae24ccff1a..5440913fd4 100644 --- a/src/vellum/client/core/force_multipart.py +++ b/src/vellum/client/core/force_multipart.py @@ -1,7 +1,9 @@ # This file was auto-generated by Fern from our API Definition. +from typing import Any, Dict -class ForceMultipartDict(dict): + +class ForceMultipartDict(Dict[str, Any]): """ A dictionary subclass that always evaluates to True in boolean contexts. @@ -9,7 +11,7 @@ class ForceMultipartDict(dict): the dictionary is empty, which would normally evaluate to False. """ - def __bool__(self): + def __bool__(self) -> bool: return True diff --git a/src/vellum/client/core/http_response.py b/src/vellum/client/core/http_response.py index 48a1798a56..2479747e8b 100644 --- a/src/vellum/client/core/http_response.py +++ b/src/vellum/client/core/http_response.py @@ -4,8 +4,8 @@ import httpx +# Generic to represent the underlying type of the data wrapped by the HTTP response. T = TypeVar("T") -"""Generic to represent the underlying type of the data wrapped by the HTTP response.""" class BaseHttpResponse: diff --git a/src/vellum/client/core/pydantic_utilities.py b/src/vellum/client/core/pydantic_utilities.py index 1d09ed22f4..eaaa40131f 100644 --- a/src/vellum/client/core/pydantic_utilities.py +++ b/src/vellum/client/core/pydantic_utilities.py @@ -72,7 +72,7 @@ class UniversalBaseModel(pydantic.BaseModel): @pydantic.model_serializer(mode="plain", when_used="json") # type: ignore[attr-defined] def serialize_model(self, info: SerializationInfo) -> Any: # type: ignore[name-defined] - serialized = self.model_dump(context=info.context) + serialized = self.model_dump(context=info.context) # type: ignore[attr-defined] data = {k: serialize_datetime(v) if isinstance(v, dt.datetime) else v for k, v in serialized.items()} return data @@ -162,10 +162,13 @@ def dict(self, **kwargs: Any) -> Dict[str, Any]: # This optimization dramatically improves serialization performance for large nested # structures by avoiding repeated typing.get_origin checks on every element. if self.__class__.__name__ in annotated_types: - return convert_and_respect_annotation_metadata( - object_=dict_dump, annotation=self.__class__, direction="write" + return cast( + Dict[str, Any], + convert_and_respect_annotation_metadata( + object_=dict_dump, annotation=self.__class__, direction="write" + ), ) - return dict_dump + return cast(Dict[str, Any], dict_dump) def _union_list_of_pydantic_dicts(source: List[Any], destination: List[Any]) -> List[Any]: diff --git a/tests/client/utils/test_query_encoding.py b/tests/client/utils/test_query_encoding.py index 514d8a60d5..cb8a63871c 100644 --- a/tests/client/utils/test_query_encoding.py +++ b/tests/client/utils/test_query_encoding.py @@ -1,6 +1,5 @@ # This file was auto-generated by Fern from our API Definition. - from vellum.client.core.query_encoder import encode_query