Skip to content

Commit 3f6760e

Browse files
author
cclauss
authored
noqa: F821 This syntax is Python 3 only
1 parent cc5102a commit 3f6760e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: data_structures/Trie/Trie.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self):
1212
self.nodes = dict() # Mapping from char to TrieNode
1313
self.is_leaf = False
1414

15-
def insert_many(self, words: [str]):
15+
def insert_many(self, words: [str]): # noqa: F821 This syntax is Python 3 only
1616
"""
1717
Inserts a list of words into the Trie
1818
:param words: list of string words
@@ -34,7 +34,7 @@ def insert(self, word: str): # noqa: F821 This syntax is Python 3 only
3434
curr = curr.nodes[char]
3535
curr.is_leaf = True
3636

37-
def find(self, word: str) -> bool:
37+
def find(self, word: str) -> bool: # noqa: F821 This syntax is Python 3 only
3838
"""
3939
Tries to find word in a Trie
4040
:param word: word to look for
@@ -48,7 +48,7 @@ def find(self, word: str) -> bool:
4848
return curr.is_leaf
4949

5050

51-
def print_words(node: TrieNode, word: str):
51+
def print_words(node: TrieNode, word: str): # noqa: F821 This syntax is Python 3 only
5252
"""
5353
Prints all the words in a Trie
5454
:param node: root node of Trie

0 commit comments

Comments
 (0)