From e1196a9f17a21516a0f0a2df293a68c087856dae Mon Sep 17 00:00:00 2001 From: Jonas Platte <jplatte@svix.com> Date: Wed, 15 Jan 2025 20:02:19 +0100 Subject: [PATCH] python: Add back unused imports (#1640) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … and disable unused-import warning for `api/__init__.py`. Get us back into a state where we can safely publish a release. Note: We rely on people being able to import these. We should all unused symbols to `__all__` and remove the `noqa` comment down the line, for now this restores the kind of broken state we had before (better than completely broken where people have no nice import part for these things). --- python/svix/api/__init__.py | 63 ++++++++++++++++++++++++++++++------- 1 file changed, 52 insertions(+), 11 deletions(-) diff --git a/python/svix/api/__init__.py b/python/svix/api/__init__.py index cfc025d38..84bbdd6c3 100644 --- a/python/svix/api/__init__.py +++ b/python/svix/api/__init__.py @@ -1,14 +1,9 @@ +# ruff: noqa: F401 + import typing as t from dataclasses import dataclass, field -from .application import ( - ApplicationAsync, - Application, - ApplicationIn, - ApplicationOut, - ApplicationPatch, - ApplicationListOptions, -) +from .application import ApplicationAsync, Application, ApplicationListOptions from .authentication import AuthenticationAsync, Authentication from .endpoint import EndpointAsync, Endpoint, EndpointListOptions from .event_type import EventTypeAsync, EventType, EventTypeListOptions @@ -25,8 +20,22 @@ ) from .statistics import StatisticsAsync, Statistics - +from svix.internal.openapi_client.models.aggregate_event_types_out import ( + AggregateEventTypesOut, +) +from svix.internal.openapi_client.models.app_usage_stats_in import AppUsageStatsIn +from svix.internal.openapi_client.models.app_usage_stats_out import AppUsageStatsOut from svix.internal.openapi_client.client import AuthenticatedClient +from svix.internal.openapi_client.models.app_portal_access_in import AppPortalAccessIn +from svix.internal.openapi_client.models.app_portal_access_out import AppPortalAccessOut +from svix.internal.openapi_client.models.application_in import ApplicationIn +from svix.internal.openapi_client.models.application_out import ApplicationOut +from svix.internal.openapi_client.models.application_patch import ApplicationPatch +from svix.internal.openapi_client.models.background_task_out import BackgroundTaskOut +from svix.internal.openapi_client.models.background_task_status import ( + BackgroundTaskStatus, +) +from svix.internal.openapi_client.models.background_task_type import BackgroundTaskType from svix.internal.openapi_client.models.dashboard_access_out import DashboardAccessOut from svix.internal.openapi_client.models.endpoint_headers_in import EndpointHeadersIn from svix.internal.openapi_client.models.endpoint_headers_out import EndpointHeadersOut @@ -43,14 +52,36 @@ from svix.internal.openapi_client.models.endpoint_secret_rotate_in import ( EndpointSecretRotateIn, ) +from svix.internal.openapi_client.models.operational_webhook_endpoint_in import ( + OperationalWebhookEndpointIn, +) +from svix.internal.openapi_client.models.operational_webhook_endpoint_out import ( + OperationalWebhookEndpointOut, +) +from svix.internal.openapi_client.models.operational_webhook_endpoint_secret_in import ( + OperationalWebhookEndpointSecretIn, +) +from svix.internal.openapi_client.models.operational_webhook_endpoint_secret_out import ( + OperationalWebhookEndpointSecretOut, +) +from svix.internal.openapi_client.models.operational_webhook_endpoint_update import ( + OperationalWebhookEndpointUpdate, +) +from svix.internal.openapi_client.models.endpoint_stats import EndpointStats +from svix.internal.openapi_client.models.endpoint_transformation_in import ( + EndpointTransformationIn, +) +from svix.internal.openapi_client.models.endpoint_transformation_out import ( + EndpointTransformationOut, +) +from svix.internal.openapi_client.models.endpoint_update import EndpointUpdate +from svix.internal.openapi_client.models.event_example_in import EventExampleIn from svix.internal.openapi_client.models.event_type_import_open_api_in import ( EventTypeImportOpenApiIn, ) from svix.internal.openapi_client.models.event_type_import_open_api_out import ( EventTypeImportOpenApiOut, ) - - from svix.internal.openapi_client.models.event_type_in import EventTypeIn from svix.internal.openapi_client.models.event_type_out import EventTypeOut from svix.internal.openapi_client.models.event_type_patch import EventTypePatch @@ -62,12 +93,18 @@ from svix.internal.openapi_client.models.list_response_application_out import ( ListResponseApplicationOut, ) +from svix.internal.openapi_client.models.list_response_background_task_out import ( + ListResponseBackgroundTaskOut, +) from svix.internal.openapi_client.models.list_response_endpoint_message_out import ( ListResponseEndpointMessageOut, ) from svix.internal.openapi_client.models.list_response_endpoint_out import ( ListResponseEndpointOut, ) +from svix.internal.openapi_client.models.list_response_operational_webhook_endpoint_out import ( + ListResponseOperationalWebhookEndpointOut, +) from svix.internal.openapi_client.models.list_response_event_type_out import ( ListResponseEventTypeOut, ) @@ -92,7 +129,11 @@ from svix.internal.openapi_client.models.message_out import MessageOut from svix.internal.openapi_client.models.message_out_payload import MessageOutPayload from svix.internal.openapi_client.models.message_status import MessageStatus +from svix.internal.openapi_client.models.ordering import Ordering from svix.internal.openapi_client.models.recover_in import RecoverIn +from svix.internal.openapi_client.models.recover_out import RecoverOut +from svix.internal.openapi_client.models.replay_in import ReplayIn +from svix.internal.openapi_client.models.replay_out import ReplayOut from svix.internal.openapi_client.models.status_code_class import StatusCodeClass DEFAULT_SERVER_URL = "https://api.svix.com"