Skip to content

Commit

Permalink
Fix problem with typings
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderRedYT committed Oct 3, 2024
1 parent 463f7db commit 39425f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rgb565_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def main():
else:
convert_png_to_rgb565(args.input_file, args.output_file, args.swap, args.namespace, args.background, cpp_template, h_template)

def convert_png_to_rgb565(input_file: str, output_file: str, swap: bool, namespace: str, background: str | None, cpp_template: str = DEFAULT_CPP_TEMPLATE, h_template: str = DEFAULT_H_TEMPLATE):
def convert_png_to_rgb565(input_file: str, output_file: str, swap: bool, namespace: str, background: str or None, cpp_template: str = DEFAULT_CPP_TEMPLATE, h_template: str = DEFAULT_H_TEMPLATE):
name = os.path.basename(output_file).rsplit('.', 1)[0]
png = Image.open(input_file)
width, height = png.size
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='rgb565-converter',
version='1.3.1',
version='1.3.2',
description='Convert a file from png to rgb565 (cpp) and vice versa.',
url='https://github.com/CommanderRedYT/rgb565-converter',
author='CommanderRedYT',
Expand Down

0 comments on commit 39425f3

Please sign in to comment.