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: Argument clinic: Make the filename parameter to Clinic required #107439

Merged
merged 1 commit into from Jul 29, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jul 29, 2023

Clinic objects are only ever created in one place in clinic.py, and the filename parameter is passed an object that we know to be a string:

clinic = Clinic(language, verify=verify, filename=filename)

There's no need for this parameter to be optional. By making it required, we can remove an ugly assertion elsewhere that we added to keep mypy happy.

@AlexWaygood AlexWaygood merged commit 6c74b2f into python:main Jul 29, 2023
25 checks passed
@AlexWaygood AlexWaygood deleted the clinic-required-params branch July 29, 2023 18:47
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.

None yet

3 participants