From b28743aac233982810c548c71cfb225c4935461d Mon Sep 17 00:00:00 2001 From: KG Date: Tue, 12 Sep 2023 12:34:05 -0400 Subject: [PATCH] Change .open docs --- tivars/var.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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: