You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add comprehensive type checking with mypy strict mode and pyright (#20)
- Upgrade mypy to strict mode with additional error codes (ignore-without-code,
redundant-cast, truthy-bool, truthy-iterable, unused-awaitable)
- Add pyright as a second type checker for comprehensive coverage
- Configure pyright in strict mode with practical exceptions for
third-party libraries lacking full stubs
- Update CI to run both type checkers in parallel via matrix strategy
- Fix CompletedProcess generic type parameter in cli.py
- Add type: ignore comments for untyped posthog methods in telemetry.py
- Update AGENTS.md documentation with new type checking setup
The dual type checker approach catches different categories of issues:
- mypy: The standard Python type checker, excellent for protocol validation
- pyright: Microsoft's type checker, catches additional edge cases
Both run in strict mode to enforce rigorous typing standards.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments