Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
LeoLomardo wants to merge4 commits intopython:master
base:master
Choose a base branch
Loading
fromLeoLomardo:refactor-november

Conversation

@LeoLomardo
Copy link

Partially addresses#5917.

This PR refactors theparse_test_case function inmypy/test/data.py by 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_case and makes its responsibilities clearer.

Note: This is apartial refactor from#5917. Onlyparse_test_case is updated in this PR; the remaining refactoring work described in the issue is intentionally left for follow-up changes.

No behavior changes are intended. No new tests were added; the existing test suite passes, confirming that this refactor is functionally neutral.

@github-actions
Copy link
Contributor

According tomypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Author

@LeoLomardoLeoLomardo left a 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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@sterliakovsterliakovAwaiting requested review from sterliakov

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@LeoLomardo@sterliakov

[8]ページ先頭

©2009-2025 Movatter.jp