Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
Refactor: Extracted out/outN parsing logic from parse_test_case#20177
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Uh oh!
There was an error while loading.Please reload this page.
LeoLomardo 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.
Removed the long functions list files.
Partially addresses#5917.
This PR refactors the
parse_test_casefunction inmypy/test/data.pyby extracting the logic that parses[out]and[outN]sections into a new private helper,_handle_out_section(). This reduces the size and nesting ofparse_test_caseand makes its responsibilities clearer.No behavior changes are intended. No new tests were added; the existing test suite passes, confirming that this refactor is functionally neutral.