mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-03 15:49:07 -04:00
tests: Fix typing
This commit is contained in:
parent
f50b898e4c
commit
6a77bfee0a
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ from blueprintcompiler.tokenizer import Token, TokenType, tokenize
|
||||||
|
|
||||||
|
|
||||||
class TestTokenizer(unittest.TestCase):
|
class TestTokenizer(unittest.TestCase):
|
||||||
def assert_tokenize(self, string: str, expect: [Token]):
|
def assert_tokenize(self, string: str, expect: list[Token]):
|
||||||
try:
|
try:
|
||||||
tokens = tokenize(string)
|
tokens = tokenize(string)
|
||||||
self.assertEqual(len(tokens), len(expect))
|
self.assertEqual(len(tokens), len(expect))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue