Skip to content

Commit

Permalink
Missed return type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
KRLango committed Jun 20, 2024
1 parent 9be9f79 commit c81bf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nion/swift/model/Utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def do_sample() -> None:
threading.Thread(target=do_sample).start()


def simplify_filename(filename: str, replacement_char: str = '_', maximum_length: int = 64):
def simplify_filename(filename: str, replacement_char: str = '_', maximum_length: int = 64) -> str:
# This function replaces any illegal characters in a file name. Not a full path.
# macOS illegal characters = \0 /
# linux illegal characters = \0 /
Expand Down

0 comments on commit c81bf37

Please sign in to comment.