Skip to content

feat: add Python type stubs (.pyi) for the public API #78

Description

@zanni098

Problem

DuckTap has no Python type stubs (.pyi files) for its public API. Users who import ducktap as a library get no IDE autocompletion or type hints in their editor.

Proposed Solution

Add type stubs for the public API surface:

  1. src/ducktap-stubs/init.pyi - public API types
  2. src/ducktap-stubs/core/spec.pyi - APISpec, Param, Operation, Response types
  3. Generate stubs with pyright or mypy --custom-typeshed

Acceptance Criteria

  • Type stubs exist for the public API surface
  • IDE autocompletion works when importing ducktap
  • Stubs are included in the package distribution
  • pyright --verifytypes ducktap passes without errors

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions