-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add extensive typing to openhands/security directory #7732
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
Conversation
- Update mypy configuration with stricter type checking rules - Add more type stubs to pre-commit configuration - Run mypy both through pre-commit and directly in CI - Install project in editable mode for better type checking - Set correct PYTHONPATH in CI environment
|
@OpenHands install pre-commit from the existing pre-commit-config.yaml and then follow the lint.yml workflow and fix any issues |
|
I'm on it! @neubig can track my progress at all-hands.dev |
|
I successfully addressed the PR comment by:
The PR is now updated with the necessary fixes to pass all linting checks, addressing the comment's request to follow the lint.yml workflow and fix any issues. |
|
@OpenHands there are places in this PR where "Optional" is used. Please do not use Optional, use "| None" instead in all files that were changed in this PR |
|
I'm on it! @neubig can track my progress at all-hands.dev |
|
I successfully addressed the PR comment by replacing all instances of "Optional" with "| None" in the security typing files that were changed in PR #7732. Here's a summary of the changes made:
The changes have been successfully pushed to the security-typing-improvements-new branch, updating PR #7732 as requested in the comment. |
|
This should be ready! |
|
Thanks @enyst, should be ready for review again! |
enyst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: openhands <openhands@all-hands.dev>
This PR adds extensive typing to the openhands/security directory to improve type safety and code quality.
Changes include:
To run this PR locally, use the following command: