Skip to content

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood 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.

@AlexWaygoodAlexWaygood merged commit 6c74b2f into python:mainJul 29, 2023
@AlexWaygoodAlexWaygood deleted the clinic-required-params branch July 29, 2023 18:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@AlexWaygood@erlend-aasland@bedevere-bot