diff --git a/rwx/fs/__init__.py b/rwx/fs/__init__.py index b1da3a2..82b7c16 100644 --- a/rwx/fs/__init__.py +++ b/rwx/fs/__init__.py @@ -62,7 +62,8 @@ def read_file_lines(file_path: str, charset: str = CHARSET): return read_file_text(file_path).split(os.linesep) -def read_file_text(file_path: str, charset: str = CHARSET): +def read_file_text(file_path: str, charset: str = CHARSET) -> str: + """Read whole file text.""" return read_file_bytes(file_path).decode(charset)