1
0

Add a stub implementation of StateFilter.approx_difference

This commit is contained in:
Olivier Wilkinson (reivilibre)
2021-09-21 15:36:50 +01:00
parent 2843058a8b
commit 363565e6ac
+8
View File
@@ -193,6 +193,14 @@ class StateFilter:
include_others=True,
)
def approx_difference(self, subtrahend: "StateFilter") -> "StateFilter":
"""
Stub implementation! Satisfies the condition that it's an overestimate.
"""
if self == subtrahend:
return StateFilter.none()
return self
def make_sql_filter_clause(self) -> Tuple[str, List[str]]:
"""Converts the filter to an SQL clause.