Improve type hints across analytics, configuration, railway_infrastructure, and other non-unified contexts.
Scope:
- Analytics context
- Configuration context
- Railway infrastructure context
- External trains context
- Popup retrofit context
- Shunting operations context
- Yard operations context
Improvements:
- Add missing type annotations
- Fix incorrect type hints
- Use proper generic types
Benefits:
- Better type safety
- Improved IDE support
- Self-documenting code