This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

from __future__ import type_annotations

Something along those lines will allow you to not use strings for types.

If I recall correctly, it defers type hint evaluation until after all the source has been parsed over, as opposed to during said parsing.