From 793598c0b991b0a16a7ccdb4e4be55e04f830e2f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:52:46 +0000 Subject: [PATCH] refactor: remove unused ErrorResponse type from summary module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the ErrorResponse class and its imports from the summary module as it was not being used in any public API endpoints. This cleanup reduces the public API surface area without affecting existing functionality. Key changes: - Remove ErrorResponse class definition from summary/types/error_response.py - Remove ErrorResponse imports from summary/__init__.py and summary/types/__init__.py - Clean up __all__ exports and dynamic imports 🌿 Generated with Fern --- .fern/metadata.json | 4 ++-- changelog.md | 3 +++ pyproject.toml | 2 +- src/phenoml/core/client_wrapper.py | 4 ++-- src/phenoml/summary/__init__.py | 3 --- src/phenoml/summary/types/__init__.py | 3 --- src/phenoml/summary/types/error_response.py | 23 --------------------- 7 files changed, 8 insertions(+), 34 deletions(-) delete mode 100644 src/phenoml/summary/types/error_response.py diff --git a/.fern/metadata.json b/.fern/metadata.json index da6d4c0..c2b9294 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,9 +1,9 @@ { - "cliVersion": "4.17.0", + "cliVersion": "4.21.0", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "4.61.5", "generatorConfig": { "client_class_name": "PhenomlClient" }, - "sdkVersion": "8.1.0" + "sdkVersion": "9.0.0" } \ No newline at end of file diff --git a/changelog.md b/changelog.md index e33096f..1f755d2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## 9.0.0 - 2026-03-10 +* The `ErrorResponse` type has been removed from the `phenoml.summary` module. If your code imports or uses this type, you will need to remove those references as it was not used by any public API methods. + ## 8.1.0 - 2026-03-09 * feat: add ServiceUnavailableError and TooManyRequestsError handling * Add comprehensive error handling for HTTP 429 (Too Many Requests) and HTTP 503 (Service Unavailable) status codes across all FHIR client methods. This improves the client's robustness by properly handling rate limiting and temporary service unavailability scenarios. diff --git a/pyproject.toml b/pyproject.toml index 73586ff..a04a9d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "phenoml" -version = "8.1.0" +version = "9.0.0" description = "" readme = "README.md" authors = [] diff --git a/src/phenoml/core/client_wrapper.py b/src/phenoml/core/client_wrapper.py index 150c900..f21da3c 100644 --- a/src/phenoml/core/client_wrapper.py +++ b/src/phenoml/core/client_wrapper.py @@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]: import platform headers: typing.Dict[str, str] = { - "User-Agent": "phenoml/8.1.0", + "User-Agent": "phenoml/9.0.0", "X-Fern-Language": "Python", "X-Fern-Runtime": f"python/{platform.python_version()}", "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", "X-Fern-SDK-Name": "phenoml", - "X-Fern-SDK-Version": "8.1.0", + "X-Fern-SDK-Version": "9.0.0", **(self.get_custom_headers() or {}), } token = self._get_token() diff --git a/src/phenoml/summary/__init__.py b/src/phenoml/summary/__init__.py index 342437b..f06a5c9 100644 --- a/src/phenoml/summary/__init__.py +++ b/src/phenoml/summary/__init__.py @@ -11,7 +11,6 @@ CreateSummaryRequestMode, CreateSummaryResponse, CreateSummaryTemplateResponse, - ErrorResponse, FhirBundle, FhirBundleEntryItem, FhirResource, @@ -28,7 +27,6 @@ "CreateSummaryRequestMode": ".types", "CreateSummaryResponse": ".types", "CreateSummaryTemplateResponse": ".types", - "ErrorResponse": ".types", "FhirBundle": ".types", "FhirBundleEntryItem": ".types", "FhirResource": ".types", @@ -71,7 +69,6 @@ def __dir__(): "CreateSummaryRequestMode", "CreateSummaryResponse", "CreateSummaryTemplateResponse", - "ErrorResponse", "FhirBundle", "FhirBundleEntryItem", "FhirResource", diff --git a/src/phenoml/summary/types/__init__.py b/src/phenoml/summary/types/__init__.py index 7ba51f3..34c4bdf 100644 --- a/src/phenoml/summary/types/__init__.py +++ b/src/phenoml/summary/types/__init__.py @@ -10,7 +10,6 @@ from .create_summary_request_mode import CreateSummaryRequestMode from .create_summary_response import CreateSummaryResponse from .create_summary_template_response import CreateSummaryTemplateResponse - from .error_response import ErrorResponse from .fhir_bundle import FhirBundle from .fhir_bundle_entry_item import FhirBundleEntryItem from .fhir_resource import FhirResource @@ -24,7 +23,6 @@ "CreateSummaryRequestMode": ".create_summary_request_mode", "CreateSummaryResponse": ".create_summary_response", "CreateSummaryTemplateResponse": ".create_summary_template_response", - "ErrorResponse": ".error_response", "FhirBundle": ".fhir_bundle", "FhirBundleEntryItem": ".fhir_bundle_entry_item", "FhirResource": ".fhir_resource", @@ -62,7 +60,6 @@ def __dir__(): "CreateSummaryRequestMode", "CreateSummaryResponse", "CreateSummaryTemplateResponse", - "ErrorResponse", "FhirBundle", "FhirBundleEntryItem", "FhirResource", diff --git a/src/phenoml/summary/types/error_response.py b/src/phenoml/summary/types/error_response.py deleted file mode 100644 index e4fbdaf..0000000 --- a/src/phenoml/summary/types/error_response.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ErrorResponse(UniversalBaseModel): - success: typing.Optional[bool] = None - error: typing.Optional[str] = pydantic.Field(default=None) - """ - Error message describing what went wrong - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow