From a4bc17741c6c56f57bc4aa5f5eb5e81a77134f96 Mon Sep 17 00:00:00 2001 From: Sherman Hui Date: Thu, 21 Oct 2021 17:58:38 -0700 Subject: [PATCH] fix: fix mypy error --- data_structures/trie/trie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/trie/trie.py b/data_structures/trie/trie.py index 6582be24fd0c..766294c23ac8 100644 --- a/data_structures/trie/trie.py +++ b/data_structures/trie/trie.py @@ -11,7 +11,7 @@ def __init__(self): 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