⚡️ Speed up method AstraDBVectorStoreComponent.get_database_object
by 1,126% in PR #6087 (codeflash/optimize-pr6085-2025-02-03T14.05.09
)
#11830
Annotations
5 errors
Run Ruff Check:
src/backend/base/langflow/components/vectorstores/astradb.py#L371
src/backend/base/langflow/components/vectorstores/astradb.py:371:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
|
Run Ruff Check:
src/backend/base/langflow/components/vectorstores/astradb.py#L383
src/backend/base/langflow/components/vectorstores/astradb.py:383:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
|
Run Ruff Check:
src/backend/base/langflow/components/vectorstores/astradb.py#L392
src/backend/base/langflow/components/vectorstores/astradb.py:392:19: TRY003 Avoid specifying long messages outside the exception class
|
Run Ruff Check:
src/backend/base/langflow/components/vectorstores/astradb.py#L392
src/backend/base/langflow/components/vectorstores/astradb.py:392:30: EM102 Exception must not use an f-string literal, assign to variable first
|
Run Ruff Check
Process completed with exit code 1.
|
Loading