🔥 refactor(base.py): remove empty pass statements in BaseCache abstract class methods
The pass statements in the BaseCache abstract class methods are redundant and can be removed as they do not add any value to the code.
This commit is contained in:
parent
2093a23547
commit
5568db9f1b
1 changed files with 0 additions and 7 deletions
7
src/backend/langflow/cache/base.py
vendored
7
src/backend/langflow/cache/base.py
vendored
|
|
@ -17,7 +17,6 @@ class BaseCache(abc.ABC):
|
|||
Returns:
|
||||
The value associated with the key, or None if the key is not found.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def set(self, key, value):
|
||||
|
|
@ -38,14 +37,12 @@ class BaseCache(abc.ABC):
|
|||
Args:
|
||||
key: The key of the item to remove.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def clear(self):
|
||||
"""
|
||||
Clear all items from the cache.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def __contains__(self, key):
|
||||
|
|
@ -58,7 +55,6 @@ class BaseCache(abc.ABC):
|
|||
Returns:
|
||||
True if the key is in the cache, False otherwise.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def __getitem__(self, key):
|
||||
|
|
@ -71,7 +67,6 @@ class BaseCache(abc.ABC):
|
|||
Returns:
|
||||
The value associated with the key, or None if the key is not found.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def __setitem__(self, key, value):
|
||||
|
|
@ -82,7 +77,6 @@ class BaseCache(abc.ABC):
|
|||
key: The key of the item.
|
||||
value: The value to cache.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def __delitem__(self, key):
|
||||
|
|
@ -92,4 +86,3 @@ class BaseCache(abc.ABC):
|
|||
Args:
|
||||
key: The key of the item to remove.
|
||||
"""
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue