Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stubs for pycocotools #9086

Merged
merged 35 commits into from
Nov 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
ae9e2d2
Added the coco.pyi file.
hoel-bagard Nov 4, 2022
2a1c251
Added the mask.pyi file.
hoel-bagard Nov 4, 2022
81675f9
Added the cocoeval.pyi file.
hoel-bagard Nov 4, 2022
07febd5
Added imports to the __init__.
hoel-bagard Nov 4, 2022
9c204ee
Merge branch 'python:main' into main
hoel-bagard Nov 4, 2022
4faa515
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2022
3fe497d
Fixed some ids being allowed to also be simple int/str instead of list.
hoel-bagard Nov 4, 2022
2699f58
Merged with main.
hoel-bagard Nov 4, 2022
87039a7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2022
feb9114
Fixed name missing an '_'
hoel-bagard Nov 4, 2022
f03e88c
Moved some imports from typing to typing_extensions.
hoel-bagard Nov 4, 2022
8aca487
Removed numpy dependency.
hoel-bagard Nov 4, 2022
a8cd2d5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2022
8b52fca
Removed extra underscores.
hoel-bagard Nov 4, 2022
8596fab
Merge branch 'main' of github.com:hoel-bagard/typeshed
hoel-bagard Nov 4, 2022
294e104
Fixed TypeAlias import.
hoel-bagard Nov 4, 2022
749bdfa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2022
cd6001f
Now using the Self type from _typeshed.
hoel-bagard Nov 4, 2022
9536495
Added references to #5768 next to the commented out numpy imports.
hoel-bagard Nov 4, 2022
5985956
Removed the pycocotools entry from pyrightconfig.stricter.json.
hoel-bagard Nov 4, 2022
980f360
Added missing return type.
hoel-bagard Nov 4, 2022
5f09960
Fix mypy error
AlexWaygood Nov 4, 2022
4a0bac0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 4, 2022
de905d2
Added 'None' type to the COCO init arg as it is the default value.
hoel-bagard Nov 5, 2022
99a28bd
Moved the private types to __init__ and the files they are used.
hoel-bagard Nov 7, 2022
a686ab9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 7, 2022
3f668c3
Removed comment.
hoel-bagard Nov 16, 2022
34b09cd
Updated imports.
hoel-bagard Nov 28, 2022
7472602
Replace list by Collection/Sequence.
hoel-bagard Nov 28, 2022
6e5bb73
Replace list by Collection/Sequence.
hoel-bagard Nov 28, 2022
8857817
Replace list by Collection/Sequence.
hoel-bagard Nov 28, 2022
d9a3b8e
Replace list by Collection/Sequence.
hoel-bagard Nov 28, 2022
f7a13bf
Replace list by Sequence.
hoel-bagard Nov 28, 2022
4d29cf0
Replace Self type by COCO,
hoel-bagard Nov 28, 2022
3f28dcb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 28, 2022
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
Prev Previous commit
Next Next commit
Replace list by Collection/Sequence.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
hoel-bagard and AlexWaygood authored Nov 28, 2022
commit 74726024f30954c826f88a667db317cef22b2359
2 changes: 1 addition & 1 deletion stubs/pycocotools/pycocotools/coco.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class COCO:
def createIndex(self) -> None: ...
def info(self) -> None: ...
def getAnnIds(
self, imgIds: list[int] | int = ..., catIds: list[int] | int = ..., areaRng: list[float] = ..., iscrowd: bool | None = ...
self, imgIds: Collection[int] | int = ..., catIds: Collection[int] | int = ..., areaRng: Sequence[float] = ..., iscrowd: bool | None = ...
) -> list[int]: ...
def getCatIds(
self, catNms: list[str] | str = ..., supNms: list[str] | str = ..., catIds: list[int] | int = ...
hoel-bagard marked this conversation as resolved.
Show resolved Hide resolved
Expand Down