[mypy] Add/fix type annotations for similarity search in machine learning (#4088)
[mypy] Add/fix type annotations for similarity search in machine learning (#4088)

* [mypy] Add/fix type annotations for similarity search in machine learning

* fix annotation

* fix annotation (Union)

* isort
TheAlgorithms/Python