aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/templates/mesontemplates.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-09-01 14:27:10 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-08 20:15:58 +0200
commit1b19822a2df7ff969e3734973f131df9ed9d2ee3 (patch)
treecf0594943c705e59dfba531971b12070d8aa5bb2 /mesonbuild/templates/mesontemplates.py
parent62f7642a6152ddaafbe8b5fd9eb7b19e8d87c079 (diff)
downloadmeson-1b19822a2df7ff969e3734973f131df9ed9d2ee3.zip
meson-1b19822a2df7ff969e3734973f131df9ed9d2ee3.tar.gz
meson-1b19822a2df7ff969e3734973f131df9ed9d2ee3.tar.bz2
typing: Fix templates
Diffstat (limited to 'mesonbuild/templates/mesontemplates.py')
-rw-r--r--mesonbuild/templates/mesontemplates.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/templates/mesontemplates.py b/mesonbuild/templates/mesontemplates.py
index 6b341a2..68f9769 100644
--- a/mesonbuild/templates/mesontemplates.py
+++ b/mesonbuild/templates/mesontemplates.py
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import argparse
+
meson_executable_template = '''project('{project_name}', '{language}',
version : '{version}',
default_options : [{default_options}])
@@ -33,7 +35,7 @@ jar('{executable}',
'''
-def create_meson_build(options):
+def create_meson_build(options: argparse.Namespace) -> None:
if options.type != 'executable':
raise SystemExit('\nGenerating a meson.build file from existing sources is\n'
'supported only for project type "executable".\n'