Skip to content
Snippets Groups Projects
Commit 2072f264 authored by Bilel El Yaagoubi's avatar Bilel El Yaagoubi
Browse files

ok

parent 33dd3c8f
Branches
No related tags found
No related merge requests found
Pipeline #46218 failed
...@@ -18,7 +18,7 @@ class Calculator: ...@@ -18,7 +18,7 @@ class Calculator:
operators = STANDARD_OPERATORS operators = STANDARD_OPERATORS
self.operators = operators self.operators = operators
def tokenize(self, line: str) -> list[Token]: def tokenize(self, line: str):
""" """
Tokenize an expression into a list of tokens. Tokenize an expression into a list of tokens.
""" """
...@@ -34,7 +34,7 @@ class Calculator: ...@@ -34,7 +34,7 @@ class Calculator:
raise ValueError(f"Invalid token {token}") from exc raise ValueError(f"Invalid token {token}") from exc
return tokens return tokens
def parse(self, tokens: list[Token]) -> Expression: def parse(self, tokens) -> Expression:
""" """
Parse a list of tokens into an ordered expression. Parse a list of tokens into an ordered expression.
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment