refactor: Replace list() and dict() calls with literals (#7198)

This commit is contained in:
Caeden
2022-10-15 02:07:03 +01:00
committed by GitHub
parent dcca5351c9
commit 6e69181d1f
10 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ from collections import deque
class Automaton:
def __init__(self, keywords: list[str]):
self.adlist: list[dict] = list()
self.adlist: list[dict] = []
self.adlist.append(
{"value": "", "next_states": [], "fail_state": 0, "output": []}
)