File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,8 @@ def file_size(self) -> int:
185
185
"""Return an estimate of the current file size in bytes."""
186
186
# TODO: find solution without accessing private attributes of asammdf
187
187
return cast (
188
- "int" , self ._mdf ._tempfile .tell ()
189
- ) # pylint: disable=protected-access
188
+ "int" , self ._mdf ._tempfile .tell () # pylint: disable=protected-access
189
+ )
190
190
191
191
def stop (self ) -> None :
192
192
self ._mdf .save (self .file , compression = self ._compression_level )
Original file line number Diff line number Diff line change 9
9
import errno
10
10
import sys
11
11
from datetime import datetime
12
- from typing import Iterable , cast
12
+ from typing import TYPE_CHECKING , cast
13
13
14
- from can import LogReader , Message , MessageSync
14
+ from can import LogReader , MessageSync
15
15
16
16
from .logger import _create_base_argument_parser , _create_bus , _parse_additional_config
17
17
18
+ if TYPE_CHECKING :
19
+ from typing import Iterable
20
+
21
+ from can import Message
22
+
18
23
19
24
def main () -> None :
20
25
parser = argparse .ArgumentParser (description = "Replay CAN traffic." )
You can’t perform that action at this time.
0 commit comments