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:
Harrison Chase
2024-02-05 11:22:06 -08:00
committed by GitHub
parent db6af21395
commit 4eda647fdd
103 changed files with 378 additions and 369 deletions

View File

@@ -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: