Skip to content

refactor: remove __future__ annotations and update type hints #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

cofin
Copy link
Member

@cofin cofin commented Mar 9, 2025

This commit removes __future__ annotations from multiple files and updates type hints to be more precise and compatible with modern Python type checking. Key changes include:

  • Removed from __future__ import annotations from multiple files
  • Updated type hints to use Optional and Union more explicitly
  • Added type ignore comments for specific type checking issues
  • Simplified import statements
  • Updated type hints in function signatures
  • Improved type compatibility with pyright and other type checkers

Description

Closes

This commit removes `__future__` annotations from multiple files and updates type hints to be more precise and compatible with modern Python type checking. Key changes include:

- Removed `from __future__ import annotations` from multiple files
- Updated type hints to use `Optional` and `Union` more explicitly
- Added type ignore comments for specific type checking issues
- Simplified import statements
- Updated type hints in function signatures
- Improved type compatibility with pyright and other type checkers
@cofin cofin merged commit 55f7a1d into main Mar 9, 2025
13 checks passed
@cofin cofin deleted the session-setup branch March 9, 2025 03:43
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