mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[mypy] fix: fix mypy error in trie.py(#5516)
This commit is contained in:
parent
9153db2d27
commit
b373c991f6
@ -11,7 +11,7 @@ class TrieNode:
|
||||
self.nodes = dict() # Mapping from char to TrieNode
|
||||
self.is_leaf = False
|
||||
|
||||
def insert_many(self, words: [str]):
|
||||
def insert_many(self, words: list[str]):
|
||||
"""
|
||||
Inserts a list of words into the Trie
|
||||
:param words: list of string words
|
||||
|
Loading…
Reference in New Issue
Block a user