typecheck: Add type annotations to codemcp/testing.py#216
Closed
ezyang wants to merge 2 commits into
Closed
Conversation
ezyang
added a commit
that referenced
this pull request
Mar 25, 2025
typecheck codemcp/testing.py. Add stubs if necessary ```git-revs 59f08b8 (Base revision) 446a2ae Add missing type imports and define type protocols for TextContent and CallToolResult b4c027f Add type annotations to normalize_path and extract_text_from_result methods 3729c88 Add type annotations to extract_chat_id_from_text method and remove redundant import 9423bce Add type annotations to call_tool_assert_error method and add session null check ac62435 Add type annotations to call_tool_assert_success method and add session null check 021442e Add type annotations to get_chat_id method and improve error handling 7d5a7a0 Add return type annotation to _unwrap_exception_groups method dd242dd Add return type annotation to create_client_session method 80cd7e8 Fix git_run method with proper type annotations and null handling 85b6a23 Remove unused imports and add AsyncGenerator 16347f8 Fix return type of _unwrap_exception_groups method 7f12851 Fix create_client_session return type and remove cwd parameter 7e0a9e4 Fix error handling in git_run method and remove unused variable 2e60cdc Add pyright ignore directives for remaining errors bb5fc5b Auto-commit format changes HEAD Auto-commit lint changes ``` codemcp-id: 226-typecheck-add-type-annotations-to-codemcp-testing- ghstack-source-id: 55048a9 Pull-Request-resolved: #216
ezyang
added a commit
that referenced
this pull request
Mar 25, 2025
typecheck codemcp/testing.py. Add stubs if necessary ```git-revs 59f08b8 (Base revision) 446a2ae Add missing type imports and define type protocols for TextContent and CallToolResult b4c027f Add type annotations to normalize_path and extract_text_from_result methods 3729c88 Add type annotations to extract_chat_id_from_text method and remove redundant import 9423bce Add type annotations to call_tool_assert_error method and add session null check ac62435 Add type annotations to call_tool_assert_success method and add session null check 021442e Add type annotations to get_chat_id method and improve error handling 7d5a7a0 Add return type annotation to _unwrap_exception_groups method dd242dd Add return type annotation to create_client_session method 80cd7e8 Fix git_run method with proper type annotations and null handling 85b6a23 Remove unused imports and add AsyncGenerator 16347f8 Fix return type of _unwrap_exception_groups method 7f12851 Fix create_client_session return type and remove cwd parameter 7e0a9e4 Fix error handling in git_run method and remove unused variable 2e60cdc Add pyright ignore directives for remaining errors bb5fc5b Auto-commit format changes 7da18b6 Auto-commit lint changes HEAD Fix git_run method to correctly handle empty output with text=True ``` codemcp-id: 226-typecheck-add-type-annotations-to-codemcp-testing- ghstack-source-id: cbb46d1 Pull-Request-resolved: #216
This was referenced Mar 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
typecheck codemcp/testing.py. Add stubs if necessary
codemcp-id: 226-typecheck-add-type-annotations-to-codemcp-testing-