Skip to content

Commit

Permalink
Add missing colons to class methods (donnemartin#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and donnemartin committed Mar 18, 2018
1 parent 38a93dc commit 0178943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion solutions/object_oriented_design/lru_cache/lru_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, MAX_SIZE):
self.lookup = {} # key: query, value: node
self.linked_list = LinkedList()

def get(self, query)
def get(self, query):
"""Get the stored query result from the cache.
Accessing a node updates its position to the front of the LRU list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, MAX_SIZE):
self.lookup = {}
self.linked_list = LinkedList()

def get(self, query)
def get(self, query):
"""Get the stored query result from the cache.
Accessing a node updates its position to the front of the LRU list.
Expand Down

0 comments on commit 0178943

Please sign in to comment.