Skip to content
Snippets Groups Projects
Commit 6a36b867 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fix up base conditions

parent 36d683ec
No related branches found
Tags v2.5.1
No related merge requests found
......@@ -40,7 +40,7 @@ class ZerothSeverity(BaseCondition):
class OperationJoin(BaseCondition):
__slots__ = ('conditions', )
def __init__(self, *conditions: MemoryCondition):
def __init__(self, *conditions: BaseCondition):
self.conditions = conditions
def can_fire(self, local_memory_data, local_maximum_consume: tp.Optional[int]) -> bool:
......@@ -75,7 +75,7 @@ class Not(BaseCondition):
"""True only if provided condition is false"""
__slots__ = ('condition', )
def __init__(self, condition: MemoryCondition):
def __init__(self, condition: BaseCondition):
self.condition = condition
def can_fire(self, local_memory_data, local_maximum_consume: tp.Optional[int]) -> bool:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment