Skip to content

Clean-up the validate_attrs method/function #2042

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

Merged
merged 2 commits into from
Jun 1, 2022
Merged

Clean-up the validate_attrs method/function #2042

merged 2 commits into from
Jun 1, 2022

Conversation

JohnVillalovos
Copy link
Member

See the commit messages for more details.

  • Use an f-string instead of % formatting
  • Move validate_attrs to be part of the RequiredOptional class.

Move the `validate_attrs` function to be inside the `RequiredOptional`
class. It makes sense for it to be part of the class as it is working
on data related to the class.
@JohnVillalovos JohnVillalovos requested a review from nejch June 1, 2022 01:09
@nejch nejch merged commit 28cf3c3 into main Jun 1, 2022
@nejch nejch deleted the jlvillal/exclusive branch June 1, 2022 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants