Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
Transformation
and NonTransformation
subclass `Transformatio…
…nBase` (#311) * Make `Transformation` and `NonTransformation` subclass `TransformationBase` In some cases it can be awkward for `NonTransformation` to be a subclass of `Transformation`, such as in `alchemiscale`, for cases where `NonTransformation` should be handled very differently. Switching to a shared, abstract base class for `Transformation` and `NonTransformation` simplifies this. * Address mypy complaints * Updated repr tests for Transformation, NonTransformation * Moved protocol property to TranformationBase * Update gufe/transformations/transformation.py Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com> * Add attribute types to TransformationBase, NonTransformation on @atravitz suggestion * Backticks fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com> Co-authored-by: Alyssa Travitz <31974495+atravitz@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information