dbolya / tide

A General Toolbox for Identifying Object Detection Errors
https://dbolya.github.io/tide
MIT License
702 stars 115 forks source link

"score" parameter in Data.add_detection is annotated as "int", should probably be "float" #37

Open drewm1980 opened 2 years ago

drewm1980 commented 2 years ago

mypy did not complain because it considers int a subtype of float, for better or worse: https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html

but it bites your callers.