mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
scripts: mypy fixes
This commit is contained in:
parent
cb1e152d99
commit
bbebe0f330
5 changed files with 77 additions and 51 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue