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

@@ -42,10 +42,10 @@ class OCIGenAIBase(BaseModel, ABC):
If not specified , DEFAULT will be used
"""
model_id: str = None
model_id: str = None # type: ignore[assignment]
"""Id of the model to call, e.g., cohere.command"""
provider: str = None
provider: str = None # type: ignore[assignment]
"""Provider name of the model. Default to None,
will try to be derived from the model_id
otherwise, requires user input
@@ -54,10 +54,10 @@ class OCIGenAIBase(BaseModel, ABC):
model_kwargs: Optional[Dict] = None
"""Keyword arguments to pass to the model"""
service_endpoint: str = None
service_endpoint: str = None # type: ignore[assignment]
"""service endpoint url"""
compartment_id: str = None
compartment_id: str = None # type: ignore[assignment]
"""OCID of compartment"""
is_stream: bool = False
@@ -94,7 +94,7 @@ class OCIGenAIBase(BaseModel, ABC):
client_kwargs.pop("signer", None)
elif values["auth_type"] == OCIAuthType(2).name:
def make_security_token_signer(oci_config):
def make_security_token_signer(oci_config): # type: ignore[no-untyped-def]
pk = oci.signer.load_private_key_from_file(
oci_config.get("key_file"), None
)