mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 19:46:30 +08:00
[mypy] fix: fix mypy error in trie.py(#5516)
This commit is contained in:
@ -11,7 +11,7 @@ class TrieNode:
|
|||||||
self.nodes = dict() # Mapping from char to TrieNode
|
self.nodes = dict() # Mapping from char to TrieNode
|
||||||
self.is_leaf = False
|
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
|
Inserts a list of words into the Trie
|
||||||
:param words: list of string words
|
:param words: list of string words
|
||||||
|
Reference in New Issue
Block a user