Skip to content

Fix type annotation warnings and test warnings (issue #442)#1459

Merged
romanlutz merged 1 commit intoAzure:mainfrom
romanlutz:fix/issue-442-type-annotations
Mar 13, 2026
Merged

Fix type annotation warnings and test warnings (issue #442)#1459
romanlutz merged 1 commit intoAzure:mainfrom
romanlutz:fix/issue-442-type-annotations

Conversation

@romanlutz
Copy link
Contributor

@romanlutz romanlutz commented Mar 13, 2026

closes #442

  • Add -> None return type to TranslationConverter.init
  • Add Optional[str] annotation to AzureBlobStorageTarget._sas_token
  • Fix _client_async type to Optional[AsyncContainerClient]
  • Replace unclosed open().read() with Path.read_bytes() in test_tts_target
  • Use context manager for Image.open() in test_leakage_scenario
  • Replace deprecated .role with .api_role in test_websocket_copilot_target
  • Use 32+ byte JWT key to fix InsecureKeyLengthWarning in tests

- Add -> None return type to TranslationConverter.__init__
- Add Optional[str] annotation to AzureBlobStorageTarget._sas_token
- Fix _client_async type to Optional[AsyncContainerClient]
- Replace unclosed open().read() with Path.read_bytes() in test_tts_target
- Use context manager for Image.open() in test_leakage_scenario
- Replace deprecated .role with .api_role in test_websocket_copilot_target
- Use 32+ byte JWT key to fix InsecureKeyLengthWarning in tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@romanlutz romanlutz merged commit bf3eaa1 into Azure:main Mar 13, 2026
38 checks passed
@romanlutz romanlutz deleted the fix/issue-442-type-annotations branch March 13, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings in pipelines

2 participants