Skip to content

Conversation

@privateip
Copy link
Member

  • Add from __future__ import annotations to all modules for deferred evaluation
  • Replace Optional[T] with T | None for more idiomatic union syntax (PEP 604)
  • Replace Dict[K, V] with dict[K, V] using built-in dict type (PEP 585)
  • Replace List[T] with list[T] using built-in list type (PEP 585)
  • Remove unnecessary typing imports (Dict, List, Optional) where no longer needed
  • Maintain compatibility with Python 3.10+ while using modern annotation syntax
  • Update all modules: connection, logging, heuristics, platform, gateway, http, exceptions

@privateip privateip requested a review from a team as a code owner December 12, 2025 04:34
@privateip privateip force-pushed the fix-annotations branch 2 times, most recently from 03aedb3 to 514662a Compare December 12, 2025 04:48
- Add `from __future__ import annotations` to all modules for deferred evaluation
- Replace Optional[T] with T | None for more idiomatic union syntax (PEP 604)
- Replace Dict[K, V] with dict[K, V] using built-in dict type (PEP 585)
- Replace List[T] with list[T] using built-in list type (PEP 585)
- Remove unnecessary typing imports (Dict, List, Optional) where no longer needed
- Maintain compatibility with Python 3.10+ while using modern annotation syntax
- Update all modules: connection, logging, heuristics, platform, gateway, http, exceptions
@privateip privateip merged commit 238ea3f into itential:devel Dec 12, 2025
4 checks passed
@privateip privateip deleted the fix-annotations branch December 12, 2025 05:31
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.

1 participant