Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/pycocotools/pycocotools/coco.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Collection, Sequence
from pathlib import Path
from typing import Generic, Literal, TypeAlias, TypedDict, TypeVar, overload, type_check_only
from typing import Any, Generic, Literal, TypeAlias, TypedDict, TypeVar, overload, type_check_only

import numpy as np
import numpy.typing as npt
Expand Down Expand Up @@ -82,7 +82,7 @@ class COCO:
def loadCats(self, ids: Collection[int] | int = []) -> list[_Category]: ...
def loadImgs(self, ids: Collection[int] | int = []) -> list[_Image]: ...
def showAnns(self, anns: Sequence[_Annotation], draw_bbox: bool = False) -> None: ...
def loadRes(self, resFile: str) -> COCO: ...
def loadRes(self, resFile: str | npt.NDArray[np.float64] | list[dict[str, Any]]) -> COCO: ...
def download(self, tarDir: str | None = None, imgIds: Collection[int] = []) -> Literal[-1] | None: ...
def loadNumpyAnnotations(self, data: npt.NDArray[np.float64]) -> list[_Annotation]: ...

Expand Down
Loading