DEV Community

Discussion on: A Failed Experiment with Python Type Annotations

Collapse
victorosilva profile image
Victor Silva • Edited on

I'm not familiar with mypy, but the self-referential problem can be solved with PEP 563's

from __future__ import annotations

, which won't be needed in Python 4.

Collapse
mortoray profile image
edA‑qa mort‑ora‑y Author

I will check this out, since it'd shift the balance in the favour of sticking with Python (my head is running towards C++, perhaps foolishly).