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: enable mypy strict mode with comprehensive type improvements
Enable mypy strict mode and fix all type errors across the codebase:
Type System Enhancements:
- Enable strict mode in pyproject.toml
- Add schema parameter to client.get() and client.post() with overloads for type-safe returns
- Create type aliases in types_defs.py for YouTrack API responses
- Add return type annotations to all __init__ methods (-> None)
- Fix generic type parameters (FastMCP -> FastMCP[None])
Code Cleanup:
- Remove unreachable code from users.py and projects.py
- Simplify isinstance checks after type narrowing
- Remove unused close() methods from tool classes
- Remove backwards compatibility code for dict-based issue creation
API Resource Improvements:
- Use schema parameter in all client.get/post calls for proper typing
- Return typed responses (list[IssueDict], IssueCommentDict, etc.)
- Fix arg-type errors with explicit type annotations
Testing:
- Update test_add_comment to work with new schema parameter
- All 62 tests passing
- Mypy strict mode: 0 errors
0 commit comments