Skip to content

Commit

Permalink
python: Add back unused imports (#1640)
Browse files Browse the repository at this point in the history
… 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).
  • Loading branch information
svix-jplatte authored Jan 15, 2025
1 parent a72ab42 commit e1196a9
Showing 1 changed file with 52 additions and 11 deletions.
63 changes: 52 additions & 11 deletions python/svix/api/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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,
)
Expand All @@ -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"
Expand Down

0 comments on commit e1196a9

Please sign in to comment.