Is your feature request related to a problem? Please describe.
Currently, the Python backend lacks static type checking, which may lead to undetected bugs and reduces code reliability, particularly in production environments.
Describe the solution you'd like
Introduce typing annotations throughout the Python backend. Adopt type hinting consistently across modules to enable static analysis tools (like mypy) to catch errors before runtime and improve code quality and maintainability.
Describe alternatives you've considered
- Continue without type hints (not recommended, as it increases the risk of undetected errors and regression).
- Incremental addition of types, starting with the most critical modules.
Additional context
- Typing will facilitate easier onboarding of new contributors and make the codebase more robust against potential runtime issues.
- Consider integrating mypy or a similar tool to enforce type correctness.
Is your feature request related to a problem? Please describe.
Currently, the Python backend lacks static type checking, which may lead to undetected bugs and reduces code reliability, particularly in production environments.
Describe the solution you'd like
Introduce typing annotations throughout the Python backend. Adopt type hinting consistently across modules to enable static analysis tools (like mypy) to catch errors before runtime and improve code quality and maintainability.
Describe alternatives you've considered
Additional context