File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- # (C) Copyright 2020-2021, 2023 by Rocky Bernstein
1+ # (C) Copyright 2020-2021, 2023-2024 by Rocky Bernstein
22#
33# This program is free software; you can redistribute it and/or
44# modify it under the terms of the GNU General Public License
1616
1717import types
1818from copy import deepcopy
19+ from dataclasses import dataclass
20+ from typing import Iterable , Iterator , Optional
1921
2022from xdis .codetype .code310 import Code310 , Code310FieldTypes
2123from xdis .version_info import PYTHON_VERSION_TRIPLE , version_tuple_to_str
2224
23- from dataclasses import dataclass
24- from typing import Iterable , Iterator , Generator
25-
2625
2726def parse_location_entries (location_bytes , first_line ):
2827 """
@@ -227,7 +226,7 @@ def _test_check_bit(linetable_code_byte: int):
227226 return bool (linetable_code_byte & 128 )
228227
229228
230- def _go_to_next_code_byte (remaining_linetable : Iterator [int ]) -> int :
229+ def _go_to_next_code_byte (remaining_linetable : Iterator [int ]) -> Optional [ int ] :
231230 try :
232231 while not _test_check_bit ((code_byte := next (remaining_linetable ))):
233232 pass
You can’t perform that action at this time.
0 commit comments