mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
infra: add -p to mkdir in lint steps (#17013)
Previously, if this did not find a mypy cache then it wouldnt run this makes it always run adding mypy ignore comments with existing uncaught issues to unblock other prs --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
@@ -905,7 +905,7 @@ class DeepLake(VectorStore):
|
||||
return self.vectorstore.dataset
|
||||
|
||||
@classmethod
|
||||
def _validate_kwargs(cls, kwargs, method_name):
|
||||
def _validate_kwargs(cls, kwargs, method_name): # type: ignore[no-untyped-def]
|
||||
if kwargs:
|
||||
valid_items = cls._get_valid_args(method_name)
|
||||
unsupported_items = cls._get_unsupported_items(kwargs, valid_items)
|
||||
@@ -917,14 +917,14 @@ class DeepLake(VectorStore):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _get_valid_args(cls, method_name):
|
||||
def _get_valid_args(cls, method_name): # type: ignore[no-untyped-def]
|
||||
if method_name == "search":
|
||||
return cls._valid_search_kwargs
|
||||
else:
|
||||
return []
|
||||
|
||||
@staticmethod
|
||||
def _get_unsupported_items(kwargs, valid_items):
|
||||
def _get_unsupported_items(kwargs, valid_items): # type: ignore[no-untyped-def]
|
||||
kwargs = {k: v for k, v in kwargs.items() if k not in valid_items}
|
||||
unsupported_items = None
|
||||
if kwargs:
|
||||
|
Reference in New Issue
Block a user