diff options
Diffstat (limited to 'sumofsquares/sosexprbase/mixins/selfdependencemixin.py')
-rw-r--r-- | sumofsquares/sosexprbase/mixins/selfdependencemixin.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sumofsquares/sosexprbase/mixins/selfdependencemixin.py b/sumofsquares/sosexprbase/mixins/selfdependencemixin.py new file mode 100644 index 0000000..8227e48 --- /dev/null +++ b/sumofsquares/sosexprbase/mixins/selfdependencemixin.py @@ -0,0 +1,9 @@ +import abc + +from sumofsquares.sosexprbase.mixins.dependencemixin import DependenceMixin +from sumofsquares.sosexprbase.mixins.parametermixin import ParameterMixin + +class SelfDependenceMixin(DependenceMixin): + @property + def dependence(self) -> set[ParameterMixin]: + return (self,) |