Skip to content

Replace deprecated Python stdlib usage for 3.14 compatibility#28

Merged
bencehezso merged 2 commits into
mainfrom
tasks/fix-deprecations
May 12, 2026
Merged

Replace deprecated Python stdlib usage for 3.14 compatibility#28
bencehezso merged 2 commits into
mainfrom
tasks/fix-deprecations

Conversation

@bencehezso
Copy link
Copy Markdown
Contributor

Replaces deprecated Python standard library patterns across the codebase to align with Python 3.14 and silence future deprecation warnings.

This PR replaces datetime.utcnow() with datetime.now(timezone.utc) (deprecated since 3.12), and modernizes type annotations by replacing typing.List, Dict, Tuple, Set, Optional, and Callable with their built-in equivalents and collections.abc (deprecated since 3.9). All changes are annotation-only or behaviorally identical — no runtime logic is affected.

@bencehezso bencehezso self-assigned this May 12, 2026
@bencehezso bencehezso added the enhancement New feature or request label May 12, 2026
@bencehezso bencehezso merged commit cb8d685 into main May 12, 2026
3 checks passed
@bencehezso bencehezso deleted the tasks/fix-deprecations branch May 12, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant