[mypy] fix: fix mypy error in trie.py(#5516)

This commit is contained in:
Sherman Hui 2021-10-21 20:40:17 -07:00 committed by GitHub
parent 9153db2d27
commit b373c991f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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