Skip to content

[pycocotools] Replace FloatInt with float | int - #17005

Open
alienxviking wants to merge 1 commit into
python:mainfrom
alienxviking:pycocotools-floatint
Open

alienxviking wants to merge 1 commit into
python:mainfrom
alienxviking:pycocotools-floatint

Conversation

@alienxviking

Copy link
Copy Markdown
Contributor

Part of #16059.

These are either arguments (areaRng, and the dt/gt boxes of iou()) or values loaded as-is from COCO annotation and result JSON (area, bbox, polygon segmentation, detection scores). Both ints and floats occur in real annotation files, so they all become an explicit float | int.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant