Skip to content

Commit a38831a

Browse files
committed
RDoc-3621 Code format
1 parent db60ce1 commit a38831a

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

ravendb/documents/operations/ai/embedded_settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ def __init__(self, embeddings_max_concurrent_batches: int = None):
1010
@classmethod
1111
def from_json(cls, json_dict: Dict[str, Any]) -> "EmbeddedSettings":
1212
return cls(
13-
embeddings_max_concurrent_batches=json_dict.get("EmbeddingsMaxConcurrentBatches") if json_dict.get("EmbeddingsMaxConcurrentBatches") else None,
13+
embeddings_max_concurrent_batches=(
14+
json_dict.get("EmbeddingsMaxConcurrentBatches")
15+
if json_dict.get("EmbeddingsMaxConcurrentBatches")
16+
else None
17+
),
1418
)
1519

1620
def to_json(self) -> Dict[str, Any]:

ravendb/documents/operations/ai/vertex_settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def from_json(cls, json_dict: Dict[str, Any]) -> "VertexSettings":
3131
google_credentials_json=json_dict.get("GoogleCredentialsJson"),
3232
location=json_dict.get("Location"),
3333
ai_version=VertexAIVersion(json_dict["AiVersion"]) if json_dict.get("AiVersion") else None,
34-
embeddings_max_concurrent_batches=json_dict.get("EmbeddingsMaxConcurrentBatches") if json_dict.get("EmbeddingsMaxConcurrentBatches") else None,
34+
embeddings_max_concurrent_batches=(
35+
json_dict.get("EmbeddingsMaxConcurrentBatches")
36+
if json_dict.get("EmbeddingsMaxConcurrentBatches")
37+
else None
38+
),
3539
)
3640

3741
def to_json(self) -> Dict[str, Any]:

0 commit comments

Comments
 (0)