From 1cf0ed0997de355d15d9418448423ecf06a62467 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 15 Aug 2023 23:00:10 -0400 Subject: [PATCH] add missing imports for future annotations --- mesonbuild/_pathlib.py | 1 + mesonbuild/compilers/asm.py | 2 ++ mesonbuild/scripts/test_loaded_modules.py | 3 +++ mesonbuild/scripts/yasm.py | 2 ++ 4 files changed, 8 insertions(+) diff --git a/mesonbuild/_pathlib.py b/mesonbuild/_pathlib.py index 640b5ed21..561a135db 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 392a08296..09cf9e11e 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 b3547beaf..f824134f2 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 730ff3e16..1d25e6f00 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