aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/templates/dlangtemplates.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/templates/dlangtemplates.py')
-rw-r--r--mesonbuild/templates/dlangtemplates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/templates/dlangtemplates.py b/mesonbuild/templates/dlangtemplates.py
index 84e6ab0..4aacda8 100644
--- a/mesonbuild/templates/dlangtemplates.py
+++ b/mesonbuild/templates/dlangtemplates.py
@@ -107,7 +107,7 @@ class DlangProject(SampleImpl):
self.name = options.name
self.version = options.version
- def create_executable(self):
+ def create_executable(self) -> None:
lowercase_token = re.sub(r'[^a-z0-9]', '_', self.name.lower())
source_name = lowercase_token + '.d'
open(source_name, 'w').write(hello_d_template.format(project_name=self.name))
@@ -116,7 +116,7 @@ class DlangProject(SampleImpl):
source_name=source_name,
version=self.version))
- def create_library(self):
+ def create_library(self) -> None:
lowercase_token = re.sub(r'[^a-z0-9]', '_', self.name.lower())
uppercase_token = lowercase_token.upper()
function_name = lowercase_token[0:3] + '_func'