mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
refactor: Replace list() and dict() calls with literals (#7198)
This commit is contained in:
@@ -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": []}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user