diff --git a/tivars/var.py b/tivars/var.py index 9e9c59a..b8656f3 100644 --- a/tivars/var.py +++ b/tivars/var.py @@ -211,9 +211,10 @@ def load_from_file(self, file: BinaryIO): @classmethod def open(cls, filename: str) -> 'TIHeader': """ - Loads this header from a file given a filename + Creates a new header from a file given a filename :param filename: A filename to open + :return: The header stored in the file """ with open(filename, 'rb') as file: @@ -788,9 +789,10 @@ def string(self) -> str: @classmethod def open(cls, filename: str) -> 'TIEntry': """ - Loads this entry from a file given a filename + Creates a new entry from a file given a filename :param filename: A filename to open + :return: The (first) entry stored in the file """ if cls._type_id is not None and \ @@ -1125,9 +1127,10 @@ def load_var_file(self, file: BinaryIO): @classmethod def open(cls, filename: str) -> 'TIVar': """ - Loads this var from a file given a filename + Creates a new var from a file given a filename :param filename: A filename to open + :return: The var stored in the file """ with open(filename, 'rb') as file: