votchallenge / toolkit

The official VOT Challenge evaluation and analysis toolkit
http://www.votchallenge.net/
GNU General Public License v3.0
153 stars 43 forks source link

fix: resolve failed initialization due to deprecated ABC import #72

Closed MamoruDS closed 1 year ago

MamoruDS commented 1 year ago

This PR fixed the ABC import issue for python versions >= 3.10. Specifically, I've updated the code to import Iterable from collections.abc instead of collections based on the version information. Since python 3.3, ABCs like Iterable were moved to collections.abc, and they were finally dropped in 3.10.

Additionally, I noticed that your other code was using typing. However, for maximum compatibility, I've still used collections.abc for this specific issue.

lukacu commented 1 year ago

Thanks!