aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2015backend.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-01-06 12:11:19 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2020-01-28 21:18:25 +0200
commit668610c0d2b0f3a66d96022eb57afe5b09c3a2b7 (patch)
treeb35d68d125f7ae9b9df7bfc122236a4c922511f5 /mesonbuild/backend/vs2015backend.py
parent3f8d6af9c2110bc1b3c94dd7b638d5b7eb1208c0 (diff)
downloadmeson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.zip
meson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.tar.gz
meson-668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.tar.bz2
backend: refactor: set self.interpreter in the constructor
Diffstat (limited to 'mesonbuild/backend/vs2015backend.py')
-rw-r--r--mesonbuild/backend/vs2015backend.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/backend/vs2015backend.py b/mesonbuild/backend/vs2015backend.py
index 1e5e171..bdc1675 100644
--- a/mesonbuild/backend/vs2015backend.py
+++ b/mesonbuild/backend/vs2015backend.py
@@ -14,11 +14,14 @@
from .vs2010backend import Vs2010Backend
from ..mesonlib import MesonException
+from ..interpreter import Interpreter
+from ..build import Build
+import typing as T
class Vs2015Backend(Vs2010Backend):
- def __init__(self, build):
- super().__init__(build)
+ def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]):
+ super().__init__(build, interpreter)
self.name = 'vs2015'
self.vs_version = '2015'
if self.environment is not None: