0.24.x | MyPy for Python2 Compatability - Patch "misplaced type annotation"
This PR fixes misplaced annotations error, after checking with **MyPy**.

**What was fixed?**

For Python 2 you need place mypy annotations `# type: ...` before docstrings.