Skip to content

Commit

Permalink
noqa: F821 This syntax is Python 3 only
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jan 20, 2018
1 parent cc5102a commit 3f6760e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data_structures/Trie/Trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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: [str]): # noqa: F821 This syntax is Python 3 only
"""
Inserts a list of words into the Trie
:param words: list of string words
Expand All @@ -34,7 +34,7 @@ def insert(self, word: str): # noqa: F821 This syntax is Python 3 only
curr = curr.nodes[char]
curr.is_leaf = True

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


def print_words(node: TrieNode, word: str):
def print_words(node: TrieNode, word: str): # noqa: F821 This syntax is Python 3 only
"""
Prints all the words in a Trie
:param node: root node of Trie
Expand Down

0 comments on commit 3f6760e

Please sign in to comment.