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.
Thanks but no longer support Python 2 and don’t merge back to the 0.24 branch