diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-06-10 00:29:27 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2022-06-10 09:15:48 -0400 |
commit | a49cd00d644c8adce974175850c047056d578b05 (patch) | |
tree | 052fc6b2ea966adffc3d65201fa5e3c3a11829e2 /mesonbuild/minstall.py | |
parent | 6aeb8792ca34956843a43dbb0f360cba656a6090 (diff) | |
download | meson-a49cd00d644c8adce974175850c047056d578b05.zip meson-a49cd00d644c8adce974175850c047056d578b05.tar.gz meson-a49cd00d644c8adce974175850c047056d578b05.tar.bz2 |
treewide: various cleanups to move imports for mypy into typechecking blocks
Along the way, add __future__ annotations where lacking.
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 1531be4..0c69126 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +from __future__ import annotations from glob import glob from pathlib import Path @@ -26,10 +27,7 @@ import typing as T from . import build from . import environment -from .backend.backends import ( - InstallData, InstallDataBase, InstallEmptyDir, InstallSymlinkData, - TargetInstallData, ExecutableSerialisation -) +from .backend.backends import InstallData from .coredata import major_versions_differ, MesonVersionMismatchException from .coredata import version as coredata_version from .mesonlib import MesonException, Popen_safe, RealPathAction, is_windows, setup_vsenv @@ -43,6 +41,10 @@ except ImportError: main_file = None if T.TYPE_CHECKING: + from .backend.backends import ( + ExecutableSerialisation, InstallDataBase, InstallEmptyDir, + InstallSymlinkData, TargetInstallData + ) from .mesonlib import FileMode try: |