1from __future__ import annotations
2
3import typing as t
4
5from typing_extensions import Literal as Lit # noqa
6
7import sqlglot
8
9# A little hack for backwards compatibility with Python 3.7.
10# For example, we might want a TypeVar for objects that support comparison e.g. SupportsRichComparisonT from typeshed.
11# But Python 3.7 doesn't support Protocols, so we'd also need typing_extensions, which we don't want as a dependency.
12A = t.TypeVar("A", bound=t.Any)
13
14E = t.TypeVar("E", bound="sqlglot.exp.Expression")
15T = t.TypeVar("T")