Skip to content

Strict mypy check fails on transcription response test #83

@saxon134

Description

@saxon134

The project config enables strict mypy, but PYTHONPATH=src python -m mypy src tests fails because client.audio.transcription(...) is typed as APIResponse and the test accesses .text. APIResponse only declares id, object, data, and status, so the checked-in strict type check is broken. Fix by adding a typed transcription response model or declaring the text field on the returned model.

File: tests/test_client.py

Line: 165

Severity: high

Summary: apiresponse text attribute breaks strict mypy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions