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/backend/vs2022backend.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/backend/vs2022backend.py')
-rw-r--r-- | mesonbuild/backend/vs2022backend.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/backend/vs2022backend.py b/mesonbuild/backend/vs2022backend.py index b0925a4..b1f93c3 100644 --- a/mesonbuild/backend/vs2022backend.py +++ b/mesonbuild/backend/vs2022backend.py @@ -11,14 +11,17 @@ # 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 import xml.etree.ElementTree as ET from .vs2010backend import Vs2010Backend -from ..interpreter import Interpreter -from ..build import Build + +if T.TYPE_CHECKING: + from ..build import Build + from ..interpreter import Interpreter class Vs2022Backend(Vs2010Backend): |