Skip to content

Type surface: two public TaskStatus enums, numbered generated names, and unlisted type-level breaks #2012

Backlog

Description

@bokelley
  • 10.0.0 widened CreateMediaBuyResponse1.status from Literal['completed'] to the generated TaskStatus (types/domains/media_buy/create_media_buy_response.py:34). Subclasses that narrow to Literal['completed'] now fail mypy, and the changelog doesn't mention it.
  • Narrowing correctly requires the generated enum (types/domains/enums/task_status.py, exported only as GeneratedTaskStatus), while adcp.TaskStatus is a different client-side enum with different members.
  • Removing core.reporting_subscription.AccountId7 was breaking only because numbered generated names are public.

Asks: list type-level breaks in the changelog; one unambiguous public name per enum; keep numbered generated classes out of public modules (or give them stable names).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions