Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
+1
-1
@@ -121,7 +121,7 @@ class ColBERTQueryEmbeddingProcessor(
|
||||
tokenizer,
|
||||
content_ids: list[int],
|
||||
) -> TokensPrompt:
|
||||
"""[CLS] [DocumentMarker] <tokens> [SEP]"""
|
||||
"""[CLS] [DocumentMarker] <tokens> [SEP]."""
|
||||
_, document_marker_id = self._resolve_marker_ids(tokenizer)
|
||||
|
||||
content_ids = content_ids[: self.max_model_len - 3]
|
||||
|
||||
@@ -58,6 +58,7 @@ def save_geotiff(image: torch.Tensor, meta: dict, out_format: str) -> str | byte
|
||||
image: np.ndarray with shape (bands, height, width)
|
||||
output_path: path where to save the image
|
||||
meta: dict with meta info.
|
||||
|
||||
"""
|
||||
if out_format == "path":
|
||||
# create temp file
|
||||
@@ -100,8 +101,8 @@ def read_geotiff(
|
||||
Returns:
|
||||
np.ndarray with shape (bands, height, width)
|
||||
meta info dict
|
||||
"""
|
||||
|
||||
"""
|
||||
if all([x is None for x in [file_path, path_type, file_data]]):
|
||||
raise Exception("All input fields to read_geotiff are None")
|
||||
write_to_file: bytes | None = None
|
||||
@@ -168,8 +169,8 @@ def load_image(
|
||||
Returns:
|
||||
np.array containing created example
|
||||
list of meta info for each image in *file_paths*
|
||||
"""
|
||||
|
||||
"""
|
||||
imgs: list[np.ndarray] = []
|
||||
metas = []
|
||||
temporal_coords = []
|
||||
|
||||
@@ -39,13 +39,13 @@ class ImagePrompt(BaseModel):
|
||||
|
||||
|
||||
class ImageRequestOutput(BaseModel):
|
||||
"""
|
||||
The output data of an image request to vLLM.
|
||||
"""The output data of an image request to vLLM.
|
||||
|
||||
Args:
|
||||
type (str): The data content type [path, object]
|
||||
format (str): The image format (e.g., jpeg, png, etc.)
|
||||
data (Any): The resulting data.
|
||||
|
||||
"""
|
||||
|
||||
type: Literal["path", "b64_json"]
|
||||
|
||||
@@ -5,8 +5,7 @@ from vllm.v1.metrics.loggers import StatLoggerBase
|
||||
|
||||
|
||||
class DummyStatLogger(StatLoggerBase):
|
||||
"""
|
||||
A dummy stat logger for testing purposes.
|
||||
"""A dummy stat logger for testing purposes.
|
||||
Implements the minimal interface expected by StatLoggerManager.
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user