mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 03:59:42 +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:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user