diff --git a/my/core/compat.py b/my/core/compat.py index 8fc3ef5..a4175b6 100644 --- a/my/core/compat.py +++ b/my/core/compat.py @@ -58,9 +58,11 @@ else: if TYPE_CHECKING: from typing_extensions import Literal else: - from typing import Union # erm.. I guess as long as it's not crashing, whatever... - Literal = Union + class _Literal: + def __getitem__(self, args): + pass + Literal = _Literal() import os