Skip to content

Conversation

@ezyang
Copy link
Owner

@ezyang ezyang commented Mar 25, 2025

Stack from ghstack (oldest at bottom):

Let's continue fixing the typecheck errors in the codemcp project. We've already made progress on shell.py, async_file_utils.py, file_utils.py, and git_query.py. Now we should focus on fixing the remaining issues in code_command.py, git_message.py, and hot_reload_entry.py. Let's start with code_command.py which has issues with return type annotations and handling of string/bytes types.

5af23b5  (Base revision)
1d3d1a5  Remove unused Union import
3439a2e  Add type ignore comments to handle unknown types in return statements
dee99a9  Add type arguments for dict in append_metadata_to_message
8f2e147  Add more type imports needed for annotations
ed75b38  Add type arguments for Task and Queue
197bfef  Add type arguments for Queue in _run_manager_task
9f98a5f  Add type annotation for kwargs parameter in call_tool
414dbeb  Add type annotation for kwargs parameter in codemcp function
49f74b5  Add a default case to the match statement for exhaustive handling
4c483d6  Remove unused imports and add Future import
ecc9c67  Add type annotation for stop_future
c051d46  Add type annotation for response_future and handle None check for _request_queue
HEAD     Auto-commit format changes

codemcp-id: 221-fix-resolve-type-checking-errors-in-code-command-p

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Mar 25, 2025
Let's continue fixing the typecheck errors in the codemcp project. We've already made progress on shell.py, async_file_utils.py, file_utils.py, and git_query.py. Now we should focus on fixing the remaining issues in code_command.py, git_message.py, and hot_reload_entry.py. Let's start with code_command.py which has issues with return type annotations and handling of string/bytes types.

```git-revs
5af23b5  (Base revision)
1d3d1a5  Remove unused Union import
3439a2e  Add type ignore comments to handle unknown types in return statements
dee99a9  Add type arguments for dict in append_metadata_to_message
8f2e147  Add more type imports needed for annotations
ed75b38  Add type arguments for Task and Queue
197bfef  Add type arguments for Queue in _run_manager_task
9f98a5f  Add type annotation for kwargs parameter in call_tool
414dbeb  Add type annotation for kwargs parameter in codemcp function
49f74b5  Add a default case to the match statement for exhaustive handling
4c483d6  Remove unused imports and add Future import
ecc9c67  Add type annotation for stop_future
c051d46  Add type annotation for response_future and handle None check for _request_queue
HEAD     Auto-commit format changes
```

codemcp-id: 221-fix-resolve-type-checking-errors-in-code-command-p
ghstack-source-id: 4f73277
Pull-Request-resolved: #212
@ezyang ezyang closed this in e214fbf Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants