Skip to content

Commit 207d96a

Browse files
Add token type CONSTANT
Signed-off-by: Matthias Wende <[email protected]>
1 parent 0c50e4b commit 207d96a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frequenz/sdk/timeseries/_formula_engine/_tokenizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ class TokenType(Enum):
7979
"""Represents the types of tokens the Tokenizer can return."""
8080

8181
COMPONENT_METRIC = 0
82-
OPER = 1
82+
CONSTANT = 1
83+
OPER = 2
8384

8485

8586
@dataclass

0 commit comments

Comments
 (0)