Skip to content

Strict mypy check fails on transcription response #99

@saxon134

Description

@saxon134

python -m mypy src tests fails because AudioResource.transcription() is annotated as returning APIResponse, while the committed test accesses the transcription-specific .text field (tests/test_client.py:165). APIResponse does not declare text, so the repository�\s strict mypy configuration cannot pass. Add a typed transcription response model with text and return it from transcription()/transcription_async(), or declare the field on the returned model.

File: src/globalrouter/_resources.py

Line: 536

Severity: high

Summary: missing transcription text model in audioresource.transcription

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