diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-03 12:41:39 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-07-19 18:31:37 -0400 |
| commit | 0bb1647fd15cc112098daf9961b2e01cb4e9cd23 (patch) | |
| tree | cab2094c676a66e3eae55cd16e3f42ae7031e264 /mesonbuild/environment.py | |
| parent | cff2fb5950cb37b01df5046cc256826449b3abaa (diff) | |
| download | meson-0bb1647fd15cc112098daf9961b2e01cb4e9cd23.tar.gz | |
move various bits of type-checking only code to TYPE_CHECKING blocks
Mostly detected with flake8-type-checking. Also quote T.cast() first
arguments, since those are not affected by future annotations.
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index ce7c9f1e6..3ec771315 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -33,7 +33,6 @@ from .envconfig import ( ) from . import compilers from .compilers import ( - Compiler, is_assembly, is_header, is_library, @@ -49,6 +48,7 @@ if T.TYPE_CHECKING: import argparse from configparser import ConfigParser + from .compilers import Compiler from .wrap.wrap import Resolver CompilersDict = T.Dict[str, Compiler] |
