aboutsummaryrefslogtreecommitdiff
path: root/yapymake/__init__.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 18:56:31 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 18:56:31 -0600
commit8fc809d03920e8e1215ea4b1e2e079fd9f6ac546 (patch)
tree61d2a1674dd36f665efa94a653e78f8269e928eb /yapymake/__init__.py
parent1b86a5e7248223beb06f6e0eb230349f24ac379f (diff)
downloadyapymake-8fc809d03920e8e1215ea4b1e2e079fd9f6ac546.tar.gz
yapymake-8fc809d03920e8e1215ea4b1e2e079fd9f6ac546.zip
start using mypy in strict mode
Diffstat (limited to 'yapymake/__init__.py')
-rw-r--r--yapymake/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yapymake/__init__.py b/yapymake/__init__.py
index fe4b182..8a0c31d 100644
--- a/yapymake/__init__.py
+++ b/yapymake/__init__.py
@@ -4,7 +4,7 @@ DESCRIPTION = 'A (mostly) POSIX-compatible make implemented in Python'
from .args import parse
from .makefile import Makefile
-def main():
+def main() -> None:
these_args = parse()
file = Makefile(these_args)
# TODO dump command line into MAKEFLAGS
@@ -15,6 +15,7 @@ def main():
targets = [arg for arg in these_args.targets_or_macros if '=' not in arg]
if len(targets) == 0:
+ assert file.first_non_special_target is not None
targets = [file.first_non_special_target]
for target in targets: