diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-14 00:42:26 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-03 14:11:31 -0400 |
| commit | 0703ee0aef68e235c1e22d6448b79dfbbb5c8039 (patch) | |
| tree | 0f7ba031362d926b726852d2070ecc8377bdb5bd /mesonbuild/ast/postprocess.py | |
| parent | 46148f923b196e1b1d004e68d43edc2daca4dd25 (diff) | |
| download | meson-0703ee0aef68e235c1e22d6448b79dfbbb5c8039.tar.gz | |
move various unused typing-only imports into type-checking blocks
Diffstat (limited to 'mesonbuild/ast/postprocess.py')
| -rw-r--r-- | mesonbuild/ast/postprocess.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/ast/postprocess.py b/mesonbuild/ast/postprocess.py index 6d808be57..0c28af09f 100644 --- a/mesonbuild/ast/postprocess.py +++ b/mesonbuild/ast/postprocess.py @@ -14,11 +14,14 @@ # This class contains the basic functionality needed to run any interpreter # or an interpreter-based tool +from __future__ import annotations from . import AstVisitor -from .. import mparser import typing as T +if T.TYPE_CHECKING: + from .. import mparser + class AstIndentationGenerator(AstVisitor): def __init__(self) -> None: self.level = 0 |
