From 0178943013f08cfc2a5c083e5d39be70ba72bbdc Mon Sep 17 00:00:00 2001 From: cclauss Date: Sun, 18 Mar 2018 14:19:08 +0100 Subject: [PATCH] Add missing colons to class methods (#143) --- solutions/object_oriented_design/lru_cache/lru_cache.py | 2 +- solutions/system_design/query_cache/query_cache_snippets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/object_oriented_design/lru_cache/lru_cache.py b/solutions/object_oriented_design/lru_cache/lru_cache.py index c2c38faa..75fe44d4 100644 --- a/solutions/object_oriented_design/lru_cache/lru_cache.py +++ b/solutions/object_oriented_design/lru_cache/lru_cache.py @@ -29,7 +29,7 @@ class Cache(object): 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. diff --git a/solutions/system_design/query_cache/query_cache_snippets.py b/solutions/system_design/query_cache/query_cache_snippets.py index 469dc7c6..6ea3bac0 100644 --- a/solutions/system_design/query_cache/query_cache_snippets.py +++ b/solutions/system_design/query_cache/query_cache_snippets.py @@ -52,7 +52,7 @@ class Cache(object): 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.