Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/astradb/langchain_astradb/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ def wrapper(*args: Any, **kwargs: Any) -> _CachedAwaitable:
return wrapper


def _async_lru_cache(maxsize: int = 128, typed: bool = False) -> Callable:
def _async_lru_cache(maxsize: int = 128) -> Callable:
"""Least-recently-used async cache decorator.

Equivalent to functools.lru_cache for async functions.
"""

def decorating_function(user_function: Callable) -> Callable:
return lru_cache(maxsize, typed)(_reawaitable(user_function))
return lru_cache(maxsize)(_reawaitable(user_function))

return decorating_function

Expand Down
1 change: 1 addition & 0 deletions libs/astradb/langchain_astradb/utils/astradb.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class _AstraDBCollectionEnvironment(_AstraDBEnvironment):
def __init__(
self,
collection_name: str,
*,
token: str | TokenProvider | None = None,
api_endpoint: str | None = None,
environment: str | None = None,
Expand Down
1 change: 0 additions & 1 deletion libs/astradb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ ignore = [
"D105", # Do we want to activate (docstring in magic method) ?
"D107", # Do we want to activate (docstring in __init__) ?
"ERA", # Do we want to activate (no commented code) ?
"FBT", # Do we want to activate (boolean trap) ?
"ISC001", # Messes with the formatter
"PLR09", # TODO: do we enforce these ones (complexity) ?
"PTH", # Do we want to activate (use pathlib) ?
Expand Down