Skip to content

Commit

Permalink
Change .open docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Sep 12, 2023
1 parent f08bed0 commit b28743a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tivars/var.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b28743a

Please sign in to comment.