Commit daa5509f authored by Vincent Texier's avatar Vincent Texier

issue #52 add type hinting to transaction module

parent 420259dd
This diff is collapsed.
......@@ -84,6 +84,18 @@ class Condition(str):
grammar = None
# value argument mandatory ! dont remove it !
def __init__(self, value: str = '') -> None:
"""
Init Condition instance
"""
super().__init__()
# custom fields
self.left = None
self.right = None
self.op = None
@classmethod
def token(cls, left, op=None, right=None):
condition = cls()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment