AudioResource.transcription() returns APIResponse for /v1/audio/transcriptions, but the mocked API response contains a top-level text field and the repository's own test accesses .text. Because APIResponse does not declare that attribute, python -m mypy src tests fails with: tests/test_client.py:165: error: "APIResponse" has no attribute "text". Add a dedicated transcription response model with text or change the typed surface so this endpoint exposes the documented field.
File: src/globalrouter/_resources.py
Line: 536
Severity: medium
Summary: generic response type for audio transcription
AudioResource.transcription()returnsAPIResponsefor/v1/audio/transcriptions, but the mocked API response contains a top-leveltextfield and the repository's own test accesses.text. BecauseAPIResponsedoes not declare that attribute,python -m mypy src testsfails with:tests/test_client.py:165: error: "APIResponse" has no attribute "text". Add a dedicated transcription response model withtextor change the typed surface so this endpoint exposes the documented field.File:
src/globalrouter/_resources.pyLine: 536
Severity: medium
Summary: generic response type for audio transcription