Remove unnecessary list() call

This commit is contained in:
James Westman 2023-03-20 13:27:21 -05:00
parent 6f4806bfb3
commit 3f27e92eb0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6

View file

@ -107,7 +107,7 @@ class ParseContext:
"""Contains the state of the parser.""" """Contains the state of the parser."""
def __init__(self, tokens: T.List[Token], index=0): def __init__(self, tokens: T.List[Token], index=0):
self.tokens = list(tokens) self.tokens = tokens
self.binding_power = 0 self.binding_power = 0
self.index = index self.index = index