From 95364954d83dd1192bc2cdbd761fb6af0450139c Mon Sep 17 00:00:00 2001 From: Hoel Bagard Date: Fri, 4 Nov 2022 20:32:33 +0900 Subject: [PATCH] Added references to #5768 next to the commented out numpy imports. --- stubs/pycocotools/pycocotools/coco.pyi | 1 + stubs/pycocotools/pycocotools/coco_types.pyi | 1 + stubs/pycocotools/pycocotools/cocoeval.pyi | 1 + stubs/pycocotools/pycocotools/mask.pyi | 1 + 4 files changed, 4 insertions(+) diff --git a/stubs/pycocotools/pycocotools/coco.pyi b/stubs/pycocotools/pycocotools/coco.pyi index 3ee1e4e0aac8..ae0dede170be 100644 --- a/stubs/pycocotools/pycocotools/coco.pyi +++ b/stubs/pycocotools/pycocotools/coco.pyi @@ -5,6 +5,7 @@ from typing_extensions import Literal, TypeAlias from .coco_types import _RLE, _Annotation, _AnnotationG, _Category, _Dataset, _EncodedRLE, _Image, _TPolygonSegmentation +# TODO: Use numpy types when #5768 is resolved. # import numpy as np # import numpy.typing as npt diff --git a/stubs/pycocotools/pycocotools/coco_types.pyi b/stubs/pycocotools/pycocotools/coco_types.pyi index 0851d690ab61..de97b724326d 100644 --- a/stubs/pycocotools/pycocotools/coco_types.pyi +++ b/stubs/pycocotools/pycocotools/coco_types.pyi @@ -2,6 +2,7 @@ from _typeshed import Incomplete from typing import Generic, TypeVar from typing_extensions import TypeAlias, TypedDict +# TODO: Use numpy types when #5768 is resolved. # import numpy as np # import numpy.typing as npt diff --git a/stubs/pycocotools/pycocotools/cocoeval.pyi b/stubs/pycocotools/pycocotools/cocoeval.pyi index 96523f880ceb..11c38dff7f89 100644 --- a/stubs/pycocotools/pycocotools/cocoeval.pyi +++ b/stubs/pycocotools/pycocotools/cocoeval.pyi @@ -4,6 +4,7 @@ from typing_extensions import Literal, TypeAlias from .coco import COCO from .coco_types import _EvaluationResult +# TODO: Use numpy types when #5768 is resolved. # import numpy as np # import numpy.typing as npt diff --git a/stubs/pycocotools/pycocotools/mask.pyi b/stubs/pycocotools/pycocotools/mask.pyi index d99e84a9c6e2..9f88c4307077 100644 --- a/stubs/pycocotools/pycocotools/mask.pyi +++ b/stubs/pycocotools/pycocotools/mask.pyi @@ -4,6 +4,7 @@ from typing_extensions import TypeAlias from .coco_types import _EncodedRLE +# TODO: Use numpy types when #5768 is resolved. # import numpy as np # import numpy.typing as npt