diff options
author | neodarz <neodarz@neodarz.net> | 2020-04-11 20:54:31 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-04-11 20:54:31 +0200 |
commit | c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5 (patch) | |
tree | 7879ad52a006a678db2b8d2f92edcf8df664e640 /pyfunkwhale/utils.py | |
parent | e1639c0f20d56d05517a6e16aca768094b5e77ba (diff) | |
download | pyfunkwhale-c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5.tar.xz pyfunkwhale-c0bb3d43f9c51d92cdddfee2f4cbf6139fd4f9a5.zip |
Add more type hints
Diffstat (limited to '')
-rw-r--r-- | pyfunkwhale/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfunkwhale/utils.py b/pyfunkwhale/utils.py index eb6da03..b92d2b9 100644 --- a/pyfunkwhale/utils.py +++ b/pyfunkwhale/utils.py @@ -4,7 +4,7 @@ import json -def read_file(filename): +def read_file(filename: str) -> str: """ Simple wrapper for read a file content @@ -19,7 +19,7 @@ def read_file(filename): return data -def write_file(filename, datas): +def write_file(filename: str, datas: str) -> str: """ Simple wrapper for write data in file |