scripts: mypy fixes

This commit is contained in:
Daniel Eklöf 2025-12-26 13:13:01 +01:00
parent cb1e152d99
commit bbebe0f330
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 77 additions and 51 deletions

View file

@ -2,7 +2,6 @@
import argparse
import math
import sys
# Note: we use a pure gamma 2.2 function, rather than the piece-wise
@ -17,7 +16,7 @@ def linear_to_srgb(f: float) -> float:
return math.pow(f, 1 / 2.2)
def main():
def main() -> None:
parser = argparse.ArgumentParser()
parser.add_argument('c_output', type=argparse.FileType('w'))
parser.add_argument('h_output', type=argparse.FileType('w'))
@ -68,4 +67,4 @@ def main():
if __name__ == '__main__':
sys.exit(main())
main()