Skip to content
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

gh-104683: clinic.py: Modernise parse_converter() using pattern-matching #104696

Merged
merged 3 commits into from
May 21, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented May 20, 2023

And add type hints while we're here

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

Tools/clinic/clinic.py Outdated Show resolved Hide resolved
@erlend-aasland
Copy link
Contributor

Oh, before you land, could you please check that we've got coverage for those branches?

Tools/clinic/clinic.py Show resolved Hide resolved
Tools/clinic/clinic.py Show resolved Hide resolved
Tools/clinic/clinic.py Show resolved Hide resolved
Tools/clinic/clinic.py Show resolved Hide resolved
@AlexWaygood
Copy link
Member Author

Test cases have been added in #104729 for the branches missing coverage.

@AlexWaygood AlexWaygood enabled auto-merge (squash) May 21, 2023 23:04
@AlexWaygood AlexWaygood merged commit 4b107d8 into python:main May 21, 2023
@erlend-aasland
Copy link
Contributor

Very nice improvement!

@AlexWaygood AlexWaygood deleted the clinic-parse_converter branch May 22, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants