I specifically used list over List from typing as that version is deprecated (see).
This indeed is not immediately compatible with Python 3.8. However, in 99% of the cases this can be solved by adding from __future__ import annotations at the top of the file.
And maybe
Dict
,Type
, and other types fromtyping
.Check this comment from Stan's.
And quoting part of his comment here: