aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-08-15 23:00:10 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-10-20 18:07:05 -0400
commit1cf0ed0997de355d15d9418448423ecf06a62467 (patch)
treede3761ec51f1fa1d5dbb3bbf1d9e00c3fa5ea912
parent46cedeb431a67cde1c26c6d936bdd84ea8392d6f (diff)
downloadmeson-1cf0ed0997de355d15d9418448423ecf06a62467.zip
meson-1cf0ed0997de355d15d9418448423ecf06a62467.tar.gz
meson-1cf0ed0997de355d15d9418448423ecf06a62467.tar.bz2
add missing imports for future annotations
-rw-r--r--mesonbuild/_pathlib.py1
-rw-r--r--mesonbuild/compilers/asm.py2
-rw-r--r--mesonbuild/scripts/test_loaded_modules.py3
-rw-r--r--mesonbuild/scripts/yasm.py2
4 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/_pathlib.py b/mesonbuild/_pathlib.py
index 640b5ed..561a135 100644
--- a/mesonbuild/_pathlib.py
+++ b/mesonbuild/_pathlib.py
@@ -29,6 +29,7 @@
python bugs are fixed and it is OK to tell our users to "just upgrade
python".
'''
+from __future__ import annotations
import pathlib
import os
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index 392a082..09cf9e1 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import os
import typing as T
diff --git a/mesonbuild/scripts/test_loaded_modules.py b/mesonbuild/scripts/test_loaded_modules.py
index b3547be..f824134 100644
--- a/mesonbuild/scripts/test_loaded_modules.py
+++ b/mesonbuild/scripts/test_loaded_modules.py
@@ -1,6 +1,9 @@
+from __future__ import annotations
+
import sys
import json
import typing as T
+
from . import meson_exe
# This script is used by run_unittests.py to verify we don't load too many
diff --git a/mesonbuild/scripts/yasm.py b/mesonbuild/scripts/yasm.py
index 730ff3e..1d25e6f 100644
--- a/mesonbuild/scripts/yasm.py
+++ b/mesonbuild/scripts/yasm.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import argparse
import subprocess
import typing as T