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

Avoid mutation of the plate_number public attribute #21

Closed
wants to merge 2 commits into from

Conversation

kjsanger
Copy link
Member

This change decouples PacBioEntity ID generation from the public
Pydantic API of the class. This avoids surprising mutation of the
plate_number attribute during validation.

A small number of tests checked for the mutation behaviour, so these
are also changed.

This change decouples PacBioEntity ID generation from the public
Pydantic API of the class. This avoids surprising mutation of the
plate_number attribute during validation.

A msall number of tests checked for the mutation behaviour, so these
are also changed.
Removed redundant @classmethod decorators because the Pydantic
@field_validator already returns a class method.

Added a constructor for improved QOL in IDEs.
@kjsanger
Copy link
Member Author

Superseded by #22

@kjsanger kjsanger closed this Jan 18, 2024
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.

1 participant