treewide: add future annotations import

pull/10811/head
Eli Schwartz 2 years ago
parent dcefe1f8fd
commit 680b5ff819
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 1
      mesonbuild/arglist.py
  2. 1
      mesonbuild/ast/printer.py
  3. 1
      mesonbuild/cmake/common.py
  4. 1
      mesonbuild/cmake/fileapi.py
  5. 1
      mesonbuild/cmake/generator.py
  6. 1
      mesonbuild/cmake/traceparser.py
  7. 1
      mesonbuild/cmake/tracetargets.py
  8. 1
      mesonbuild/compilers/cython.py
  9. 1
      mesonbuild/compilers/mixins/arm.py
  10. 1
      mesonbuild/compilers/mixins/clang.py
  11. 1
      mesonbuild/compilers/mixins/clike.py
  12. 1
      mesonbuild/compilers/mixins/elbrus.py
  13. 1
      mesonbuild/compilers/mixins/emscripten.py
  14. 1
      mesonbuild/compilers/mixins/gnu.py
  15. 1
      mesonbuild/compilers/mixins/intel.py
  16. 1
      mesonbuild/compilers/mixins/islinker.py
  17. 1
      mesonbuild/compilers/mixins/pgi.py
  18. 1
      mesonbuild/compilers/mixins/visualstudio.py
  19. 1
      mesonbuild/coredata.py
  20. 1
      mesonbuild/dependencies/coarrays.py
  21. 1
      mesonbuild/dependencies/configtool.py
  22. 1
      mesonbuild/dependencies/cuda.py
  23. 1
      mesonbuild/dependencies/detect.py
  24. 1
      mesonbuild/dependencies/dub.py
  25. 1
      mesonbuild/dependencies/framework.py
  26. 1
      mesonbuild/dependencies/hdf5.py
  27. 1
      mesonbuild/dependencies/misc.py
  28. 1
      mesonbuild/dependencies/mpi.py
  29. 1
      mesonbuild/dependencies/platform.py
  30. 1
      mesonbuild/dependencies/qt.py
  31. 1
      mesonbuild/dependencies/scalapack.py
  32. 2
      mesonbuild/dependencies/ui.py
  33. 1
      mesonbuild/depfile.py
  34. 1
      mesonbuild/envconfig.py
  35. 1
      mesonbuild/environment.py
  36. 1
      mesonbuild/interpreter/compiler.py
  37. 1
      mesonbuild/interpreter/kwargs.py
  38. 1
      mesonbuild/interpreter/primitives/range.py
  39. 1
      mesonbuild/interpreterbase/baseobjects.py
  40. 1
      mesonbuild/interpreterbase/helpers.py
  41. 1
      mesonbuild/linkers/linkers.py
  42. 1
      mesonbuild/mcompile.py
  43. 1
      mesonbuild/mconf.py
  44. 2
      mesonbuild/mdevenv.py
  45. 1
      mesonbuild/mdist.py
  46. 1
      mesonbuild/mesondata.py
  47. 1
      mesonbuild/mesonmain.py
  48. 1
      mesonbuild/minit.py
  49. 2
      mesonbuild/mlog.py
  50. 1
      mesonbuild/modules/dlang.py
  51. 2
      mesonbuild/modules/external_project.py
  52. 1
      mesonbuild/modules/hotdoc.py
  53. 1
      mesonbuild/modules/keyval.py
  54. 1
      mesonbuild/modules/python3.py
  55. 2
      mesonbuild/modules/rust.py
  56. 1
      mesonbuild/modules/simd.py
  57. 1
      mesonbuild/modules/windows.py
  58. 2
      mesonbuild/mparser.py
  59. 1
      mesonbuild/msetup.py
  60. 1
      mesonbuild/mtest.py
  61. 1
      mesonbuild/munstable_coredata.py
  62. 3
      mesonbuild/optinterpreter.py
  63. 1
      mesonbuild/programs.py
  64. 1
      mesonbuild/scripts/clangformat.py
  65. 1
      mesonbuild/scripts/clangtidy.py
  66. 1
      mesonbuild/scripts/cleantrees.py
  67. 1
      mesonbuild/scripts/cmake_run_ctgt.py
  68. 1
      mesonbuild/scripts/copy.py
  69. 1
      mesonbuild/scripts/coverage.py
  70. 1
      mesonbuild/scripts/delwithsuffix.py
  71. 1
      mesonbuild/scripts/depfixer.py
  72. 1
      mesonbuild/scripts/dirchanger.py
  73. 1
      mesonbuild/scripts/externalproject.py
  74. 1
      mesonbuild/scripts/gettext.py
  75. 1
      mesonbuild/scripts/gtkdochelper.py
  76. 2
      mesonbuild/scripts/hotdochelper.py
  77. 1
      mesonbuild/scripts/itstool.py
  78. 1
      mesonbuild/scripts/meson_exe.py
  79. 1
      mesonbuild/scripts/msgfmthelper.py
  80. 1
      mesonbuild/scripts/regen_checker.py
  81. 1
      mesonbuild/scripts/scanbuild.py
  82. 1
      mesonbuild/scripts/symbolextractor.py
  83. 1
      mesonbuild/scripts/tags.py
  84. 1
      mesonbuild/scripts/uninstall.py
  85. 1
      mesonbuild/scripts/vcstagger.py
  86. 2
      mesonbuild/templates/cpptemplates.py
  87. 2
      mesonbuild/templates/cstemplates.py
  88. 2
      mesonbuild/templates/ctemplates.py
  89. 2
      mesonbuild/templates/cudatemplates.py
  90. 2
      mesonbuild/templates/dlangtemplates.py
  91. 2
      mesonbuild/templates/fortrantemplates.py
  92. 2
      mesonbuild/templates/javatemplates.py
  93. 1
      mesonbuild/templates/mesontemplates.py
  94. 2
      mesonbuild/templates/objcpptemplates.py
  95. 2
      mesonbuild/templates/objctemplates.py
  96. 2
      mesonbuild/templates/rusttemplates.py
  97. 2
      mesonbuild/templates/samplefactory.py
  98. 1
      mesonbuild/templates/sampleimpl.py
  99. 2
      mesonbuild/templates/valatemplates.py
  100. 1
      mesonbuild/utils/platform.py
  101. Some files were not shown because too many files have changed in this diff Show More

@ -12,6 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from functools import lru_cache from functools import lru_cache
import collections import collections

@ -14,6 +14,7 @@
# This class contains the basic functionality needed to run any interpreter # This class contains the basic functionality needed to run any interpreter
# or an interpreter-based tool # or an interpreter-based tool
from __future__ import annotations
from .. import mparser from .. import mparser
from . import AstVisitor from . import AstVisitor

@ -14,6 +14,7 @@
# This class contains the basic functionality needed to run any interpreter # This class contains the basic functionality needed to run any interpreter
# or an interpreter-based tool. # or an interpreter-based tool.
from __future__ import annotations
from ..mesonlib import MesonException, OptionKey from ..mesonlib import MesonException, OptionKey
from .. import mlog from .. import mlog

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .common import CMakeException, CMakeBuildFile, CMakeConfiguration from .common import CMakeException, CMakeBuildFile, CMakeConfiguration
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .. import mesonlib from .. import mesonlib
from .. import mlog from .. import mlog

@ -14,6 +14,7 @@
# This class contains the basic functionality needed to run any interpreter # This class contains the basic functionality needed to run any interpreter
# or an interpreter-based tool. # or an interpreter-based tool.
from __future__ import annotations
from .common import CMakeException from .common import CMakeException
from .generator import parse_generator_expressions from .generator import parse_generator_expressions

@ -1,5 +1,6 @@
# SPDX-License-Identifer: Apache-2.0 # SPDX-License-Identifer: Apache-2.0
# Copyright 2021 The Meson development team # Copyright 2021 The Meson development team
from __future__ import annotations
from .common import cmake_is_debug from .common import cmake_is_debug
from .. import mlog from .. import mlog

@ -1,5 +1,6 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# Copyright © 2021 Intel Corporation # Copyright © 2021 Intel Corporation
from __future__ import annotations
"""Abstraction for Cython language compilers.""" """Abstraction for Cython language compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Representations specific to the arm family of compilers.""" """Representations specific to the arm family of compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Abstractions for the LLVM/Clang compiler family.""" """Abstractions for the LLVM/Clang compiler family."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Mixin classes to be shared between C and C++ compilers. """Mixin classes to be shared between C and C++ compilers.

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Abstractions for the Elbrus family of compilers.""" """Abstractions for the Elbrus family of compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Provides a mixin for shared code between C and C++ Emscripten compilers.""" """Provides a mixin for shared code between C and C++ Emscripten compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Provides mixins for GNU compilers and GNU-like compilers.""" """Provides mixins for GNU compilers and GNU-like compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Abstractions for the Intel Compiler families. """Abstractions for the Intel Compiler families.

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Mixins for compilers that *are* linkers. """Mixins for compilers that *are* linkers.

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Abstractions for the PGI family of compilers.""" """Abstractions for the PGI family of compilers."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Abstractions to simplify compilers that implement an MSVC compatible """Abstractions to simplify compilers that implement an MSVC compatible
interface. interface.

@ -10,6 +10,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import copy import copy

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import functools import functools
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .base import ExternalDependency, DependencyException, DependencyTypeName from .base import ExternalDependency, DependencyException, DependencyTypeName
from ..mesonlib import listify, Popen_safe, split_args, version_compare, version_compare_many from ..mesonlib import listify, Popen_safe, split_args, version_compare, version_compare_many

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import glob import glob
import re import re

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .base import ExternalDependency, DependencyException, DependencyMethods, NotFoundDependency from .base import ExternalDependency, DependencyException, DependencyMethods, NotFoundDependency
from .cmake import CMakeDependency from .cmake import CMakeDependency

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .base import ExternalDependency, DependencyException, DependencyTypeName from .base import ExternalDependency, DependencyException, DependencyTypeName
from .pkgconfig import PkgConfigDependency from .pkgconfig import PkgConfigDependency

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .base import DependencyTypeName, ExternalDependency, DependencyException from .base import DependencyTypeName, ExternalDependency, DependencyException
from ..mesonlib import MesonException, Version, stringlistify from ..mesonlib import MesonException, Version, stringlistify

@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
# This file contains the detection logic for miscellaneous external dependencies. # This file contains the detection logic for miscellaneous external dependencies.
from __future__ import annotations
import functools import functools
import os import os

@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
# This file contains the detection logic for miscellaneous external dependencies. # This file contains the detection logic for miscellaneous external dependencies.
from __future__ import annotations
from pathlib import Path from pathlib import Path
import functools import functools

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import functools import functools
import typing as T import typing as T

@ -14,6 +14,7 @@
# This file contains the detection logic for external dependencies that are # This file contains the detection logic for external dependencies that are
# platform-specific (generally speaking). # platform-specific (generally speaking).
from __future__ import annotations
from .base import DependencyTypeName, ExternalDependency, DependencyException from .base import DependencyTypeName, ExternalDependency, DependencyException
from ..mesonlib import MesonException from ..mesonlib import MesonException

@ -13,6 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Dependency finders for the Qt framework.""" """Dependency finders for the Qt framework."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from pathlib import Path from pathlib import Path
import functools import functools

@ -14,6 +14,8 @@
# This file contains the detection logic for external dependencies that # This file contains the detection logic for external dependencies that
# are UI-related. # are UI-related.
from __future__ import annotations
import os import os
import subprocess import subprocess
import typing as T import typing as T

@ -10,6 +10,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from dataclasses import dataclass from dataclasses import dataclass
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import itertools import itertools
import os, platform, re, sys, shutil import os, platform, re, sys, shutil

@ -1,6 +1,7 @@
# SPDX-Licnese-Identifier: Apache-2.0 # SPDX-Licnese-Identifier: Apache-2.0
# Copyright 2012-2021 The Meson development team # Copyright 2012-2021 The Meson development team
# Copyright © 2021 Intel Corporation # Copyright © 2021 Intel Corporation
from __future__ import annotations
import enum import enum
import functools import functools

@ -1,6 +1,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# Copyright © 2021 The Meson Developers # Copyright © 2021 The Meson Developers
# Copyright © 2021 Intel Corporation # Copyright © 2021 Intel Corporation
from __future__ import annotations
"""Keyword Argument type annotations.""" """Keyword Argument type annotations."""

@ -1,5 +1,6 @@
# Copyright 2021 The Meson development team # Copyright 2021 The Meson development team
# SPDX-license-identifier: Apache-2.0 # SPDX-license-identifier: Apache-2.0
from __future__ import annotations
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .. import mparser from .. import mparser
from .exceptions import InvalidCode, InvalidArguments from .exceptions import InvalidCode, InvalidArguments

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .. import mesonlib, mparser from .. import mesonlib, mparser
from .exceptions import InterpreterException from .exceptions import InterpreterException

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import abc import abc
import enum import enum

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Entrypoint script for backend agnostic compile.""" """Entrypoint script for backend agnostic compile."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import itertools import itertools
import shutil import shutil

@ -1,3 +1,5 @@
from __future__ import annotations
import os, subprocess import os, subprocess
import argparse import argparse
import tempfile import tempfile

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import argparse import argparse

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import importlib.resources import importlib.resources

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
# Work around some pathlib bugs... # Work around some pathlib bugs...

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Code that creates simple startup projects.""" """Code that creates simple startup projects."""

@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations from __future__ import annotations
import enum import enum
import os import os
import io import io

@ -14,6 +14,7 @@
# This file contains the detection logic for external dependencies that # This file contains the detection logic for external dependencies that
# are UI-related. # are UI-related.
from __future__ import annotations
import json import json
import os import os

@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
import os import os
import shlex import shlex

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
'''This module provides helper functions for generating documentation using hotdoc''' '''This module provides helper functions for generating documentation using hotdoc'''

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import sysconfig import sysconfig
from .. import mesonlib from .. import mesonlib

@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations from __future__ import annotations
import os import os
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from .. import mesonlib, compilers, mlog from .. import mesonlib, compilers, mlog
from .. import build from .. import build

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import enum import enum
import os import os

@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass from dataclasses import dataclass
import re import re
import codecs import codecs

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import typing as T import typing as T
import time import time

@ -13,6 +13,7 @@
# limitations under the License. # limitations under the License.
# A tool to run tests in many different ways. # A tool to run tests in many different ways.
from __future__ import annotations
from pathlib import Path from pathlib import Path
from collections import deque from collections import deque

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from . import coredata as cdata from . import coredata as cdata

@ -11,8 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations from __future__ import annotations
import re import re
import typing as T import typing as T
@ -22,6 +22,7 @@ from . import mparser
from . import mlog from . import mlog
from .interpreterbase import FeatureNew, typed_pos_args, typed_kwargs, ContainerTypeInfo, KwargInfo, FeatureDeprecated from .interpreterbase import FeatureNew, typed_pos_args, typed_kwargs, ContainerTypeInfo, KwargInfo, FeatureDeprecated
from .interpreter.type_checking import NoneType, in_set_validator from .interpreter.type_checking import NoneType, in_set_validator
if T.TYPE_CHECKING: if T.TYPE_CHECKING:
from .interpreterbase import TYPE_var, TYPE_kwargs from .interpreterbase import TYPE_var, TYPE_kwargs
from .interpreterbase import SubProject from .interpreterbase import SubProject

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""Representations and logic for External and Internal Programs.""" """Representations and logic for External and Internal Programs."""

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import argparse import argparse
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import argparse import argparse
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import sys import sys

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations
import argparse import argparse
import subprocess import subprocess

@ -1,5 +1,6 @@
# SPDX-License-Identifer: Apache-2.0 # SPDX-License-Identifer: Apache-2.0
# Copyright © 2021 Intel Corporation # Copyright © 2021 Intel Corporation
from __future__ import annotations
"""Helper script to copy files at build time. """Helper script to copy files at build time.

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild import environment, mesonlib from mesonbuild import environment, mesonlib

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os, sys import os, sys
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import sys import sys

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
'''CD into dir given as first argument and execute '''CD into dir given as first argument and execute
the command given in the rest of the arguments.''' the command given in the rest of the arguments.'''

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import argparse import argparse

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import argparse import argparse

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import sys, os import sys, os
import subprocess import subprocess

@ -1,3 +1,5 @@
from __future__ import annotations
import os import os
import shutil import shutil
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import argparse import argparse

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import sys import sys

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import argparse import argparse
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import sys, os import sys, os
import pickle, subprocess import pickle, subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import subprocess import subprocess
import shutil import shutil

@ -19,6 +19,7 @@
# This file is basically a reimplementation of # This file is basically a reimplementation of
# http://cgit.freedesktop.org/libreoffice/core/commit/?id=3213cd54b76bc80a6f0516aac75a48ff3b2ad67c # http://cgit.freedesktop.org/libreoffice/core/commit/?id=3213cd54b76bc80a6f0516aac75a48ff3b2ad67c
from __future__ import annotations
import typing as T import typing as T
import os, sys import os, sys

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import subprocess import subprocess

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import os import os
import typing as T import typing as T

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import sys, os, subprocess, re import sys, os, subprocess, re
import typing as T import typing as T

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
import argparse import argparse

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.valatemplates import ValaProject from mesonbuild.templates.valatemplates import ValaProject
from mesonbuild.templates.fortrantemplates import FortranProject from mesonbuild.templates.fortrantemplates import FortranProject
from mesonbuild.templates.objcpptemplates import ObjCppProject from mesonbuild.templates.objcpptemplates import ObjCppProject

@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
class SampleImpl: class SampleImpl:

@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
from mesonbuild.templates.sampleimpl import SampleImpl from mesonbuild.templates.sampleimpl import SampleImpl
import re import re

@ -13,6 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import annotations
"""base classes providing no-op functionality..""" """base classes providing no-op functionality.."""

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save