Skip to content

refactor(client): replace deprecated typing imports with modern syntax#65

Merged
fguillot merged 1 commit intomainfrom
refactor/modern-type-hints
Mar 24, 2026
Merged

refactor(client): replace deprecated typing imports with modern syntax#65
fguillot merged 1 commit intomainfrom
refactor/modern-type-hints

Conversation

@fguillot
Copy link
Copy Markdown
Member

Use from __future__ import annotations and PEP 604 union syntax (X | None) instead of Optional/Union, and built-in generics (list[dict]) instead of typing.List. Only NoReturn remains imported from typing as it has no built-in equivalent.

Use `from __future__ import annotations` and PEP 604 union syntax
(X | None) instead of Optional/Union, and built-in generics
(list[dict]) instead of typing.List. Only NoReturn remains imported
from typing as it has no built-in equivalent.
@fguillot fguillot merged commit c52c063 into main Mar 24, 2026
6 checks passed
@fguillot fguillot deleted the refactor/modern-type-hints branch March 24, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant