Skip to content

Commit 331213b

Browse files
authored
Merge pull request #17 from tekktrik/dev/small-fix
Remove unused code, update optional dependencies
2 parents 750fc24 + c08f6dd commit 331213b

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

circuitpython_functools.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,6 @@ def cache_clear(self):
107107
gc.collect()
108108

109109

110-
class LRUCachedFunc:
111-
"""Wrapped LRU cache function."""
112-
113-
def __init__(self, wrapped_func, maxsize):
114-
"""Initialize the wrapped LRU cache function."""
115-
self._maxsize = maxsize
116-
self._wrapped_func = wrapped_func
117-
118-
def __call__(self, *args, **kwargs):
119-
"""Call the wrapped function."""
120-
print(type(self._wrapped_func))
121-
return self._wrapped_func(*args, **kwargs)
122-
123-
def cache_clear(self):
124-
"""Clear the LRU cache."""
125-
return self.cache_clear()
126-
127-
128110
def cache(user_function):
129111
"""Create an unbounded cache."""
130112
return CachedFunc(-1, user_function)

optional_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# SPDX-FileCopyrightText: 2022 Alec Delaney, for Adafruit Industries
22
#
33
# SPDX-License-Identifier: Unlicense
4+
5+
pre-commit~=4.1

0 commit comments

Comments
 (0)