Skip to content

Commit

Permalink
remove unused weak_lru function and store in issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Jul 9, 2024
1 parent f5118ed commit 4f8a662
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions pastastore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,6 @@
warnings.showwarning = _custom_warning


# def weak_lru(maxsize=128, typed=False):
# """LRU Cache decorator that keeps a weak reference to 'self'.

# From https://stackoverflow.com/a/68052994/10596229.

# Parameters
# ----------
# maxsize : int, optional
# maximum size of cache, by default 128
# typed : bool, optional
# whether to differentiate between types, by default False

# """

# def wrapper(func):
# @functools.lru_cache(maxsize, typed)
# def _func(_self, *args, **kwargs):
# return func(_self(), *args, **kwargs)

# @functools.wraps(func)
# def inner(self, *args, **kwargs):
# return _func(weakref.ref(self), *args, **kwargs)

# return inner

# return wrapper


class BaseConnector(ABC):
"""Base Connector class.
Expand Down

0 comments on commit 4f8a662

Please sign in to comment.