Add missing type hints
This commit is contained in:
parent
3b1df5c5b2
commit
f3f9bfac20
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main() -> None:
|
||||||
"""
|
"""
|
||||||
Main function, run first.
|
Main function, run first.
|
||||||
Prepares environment and parses commands.
|
Prepares environment and parses commands.
|
||||||
|
@ -41,7 +41,7 @@ def get_base_dir() -> str:
|
||||||
return base_dir
|
return base_dir
|
||||||
|
|
||||||
|
|
||||||
def edit_note(base_dir: str, note_date):
|
def edit_note(base_dir: str, note_date: date) -> None:
|
||||||
"""
|
"""
|
||||||
Creates the required directories and opens a text editor
|
Creates the required directories and opens a text editor
|
||||||
so that the user can describe the day.
|
so that the user can describe the day.
|
||||||
|
@ -65,7 +65,7 @@ def edit_note(base_dir: str, note_date):
|
||||||
print("Your editor returned non-zero exit code")
|
print("Your editor returned non-zero exit code")
|
||||||
|
|
||||||
|
|
||||||
def backup(base_dir: str, current_date):
|
def backup(base_dir: str, current_date: date) -> None:
|
||||||
"""
|
"""
|
||||||
Creates an archive with all notes
|
Creates an archive with all notes
|
||||||
"""
|
"""
|
||||||
|
@ -81,7 +81,7 @@ def backup(base_dir: str, current_date):
|
||||||
print("Archiver returned non-zero exit code")
|
print("Archiver returned non-zero exit code")
|
||||||
|
|
||||||
|
|
||||||
def merge(base_dir: str):
|
def merge(base_dir: str) -> None:
|
||||||
"""
|
"""
|
||||||
This function concatenates all files and prefixes each with the filename.
|
This function concatenates all files and prefixes each with the filename.
|
||||||
The result will be printed to stdout.
|
The result will be printed to stdout.
|
||||||
|
|
Loading…
Reference in a new issue