Skip to content

fix: resolve type checking errors in code_command.py #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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.

1 participant