Skip to content

Commit

Permalink
correct typehint in ascii reader
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschD committed Nov 30, 2023
1 parent 9809552 commit 602fdc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions turn_by_turn/ascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ def _write_tbt_data(tbt_data: TbtData, bunch_id: int, output_file: TextIO) -> No

# ----- Reader ----- #

def read_tbt(
file_path: Union[str, Path],
bunch_id: int = None,
) -> Tuple[List[TransverseData], Optional[datetime]]:
def read_tbt(file_path: Union[str, Path], bunch_id: int = None) -> TbtData:
"""
Reads turn-by-turn data from an ASCII turn-by-turn format file, and return the date as well as
parsed matrices for construction of a ``TbtData`` object.
Expand Down

0 comments on commit 602fdc8

Please sign in to comment.