From 602fdc89c19015dee9bcfc9132e99413dea63064 Mon Sep 17 00:00:00 2001 From: JoschD <26184899+JoschD@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:56:29 +0100 Subject: [PATCH] correct typehint in ascii reader --- turn_by_turn/ascii.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/turn_by_turn/ascii.py b/turn_by_turn/ascii.py index 233a9db..4bfe75c 100644 --- a/turn_by_turn/ascii.py +++ b/turn_by_turn/ascii.py @@ -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.