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/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
self.async_collection = self.astra_env.async_collection

@abstractmethod
def decode_value(self, value: Any) -> V | None:
def decode_value(self, value: Any) -> V | None: # noqa: ANN401
"""Decodes value from Astra DB."""

@abstractmethod
def encode_value(self, value: V | None) -> Any:
def encode_value(self, value: V | None) -> Any: # noqa: ANN401
"""Encodes value for Astra DB."""

@override
Expand Down
3 changes: 2 additions & 1 deletion libs/astradb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ pydocstyle.convention = "google"
pep8-naming.classmethod-decorators = [
"langchain_core.pydantic_v1.validator",
]
flake8-annotations.allow-star-arg-any = true
flake8-annotations.mypy-init-return = true
select = ["ALL"]
ignore = [
"ANN", # Already checked by mypy
"C90", # Do we want to activate (complexity) ?
"COM812", # Messes with the formatter
"ERA", # Do we want to activate (no commented code) ?
Expand Down