diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-09-13 21:22:35 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-01 17:01:30 -0500 |
commit | 680b5ff819bf36397ea560f802510bce5b83f6bc (patch) | |
tree | be858f583b6cce3fab78836b11678759078bef11 /mesonbuild/modules | |
parent | dcefe1f8fdd89c5f2d1329c793919396168e01d6 (diff) | |
download | meson-680b5ff819bf36397ea560f802510bce5b83f6bc.zip meson-680b5ff819bf36397ea560f802510bce5b83f6bc.tar.gz meson-680b5ff819bf36397ea560f802510bce5b83f6bc.tar.bz2 |
treewide: add future annotations import
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/dlang.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/external_project.py | 2 | ||||
-rw-r--r-- | mesonbuild/modules/hotdoc.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/keyval.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/python3.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/rust.py | 2 | ||||
-rw-r--r-- | mesonbuild/modules/simd.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/windows.py | 1 |
8 files changed, 8 insertions, 2 deletions
diff --git a/mesonbuild/modules/dlang.py b/mesonbuild/modules/dlang.py index 7a9b99f..b9d4299 100644 --- a/mesonbuild/modules/dlang.py +++ b/mesonbuild/modules/dlang.py @@ -14,6 +14,7 @@ # This file contains the detection logic for external dependencies that # are UI-related. +from __future__ import annotations import json import os diff --git a/mesonbuild/modules/external_project.py b/mesonbuild/modules/external_project.py index 087850b..8b0ae93 100644 --- a/mesonbuild/modules/external_project.py +++ b/mesonbuild/modules/external_project.py @@ -11,8 +11,8 @@ # 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 pathlib import Path import os import shlex diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py index 3dac9be..b73d812 100644 --- a/mesonbuild/modules/hotdoc.py +++ b/mesonbuild/modules/hotdoc.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 '''This module provides helper functions for generating documentation using hotdoc''' diff --git a/mesonbuild/modules/keyval.py b/mesonbuild/modules/keyval.py index e900a2b..1ba2f1c 100644 --- a/mesonbuild/modules/keyval.py +++ b/mesonbuild/modules/keyval.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 import os import typing as T diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py index 52f8531..065e8d7 100644 --- a/mesonbuild/modules/python3.py +++ b/mesonbuild/modules/python3.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 import sysconfig from .. import mesonlib diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py index 02003ec..126b894 100644 --- a/mesonbuild/modules/rust.py +++ b/mesonbuild/modules/rust.py @@ -11,8 +11,8 @@ # 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 + import os import typing as T diff --git a/mesonbuild/modules/simd.py b/mesonbuild/modules/simd.py index a33022d..3ee0858 100644 --- a/mesonbuild/modules/simd.py +++ b/mesonbuild/modules/simd.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 .. import mesonlib, compilers, mlog from .. import build diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index dec6e2e..494cfbf 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.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 import enum import os |