Skip to content

Commit 3980c81

Browse files
committed
Fixing Python 3.8 type hint issue
1 parent 69f78d3 commit 3980c81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tap/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
List,
2323
Literal,
2424
Optional,
25+
Set,
2526
Tuple,
2627
Union,
2728
)
@@ -219,7 +220,7 @@ def source_line_to_tokens(obj: object) -> Dict[int, List[Dict[str, Union[str, in
219220
return line_to_tokens
220221

221222

222-
def get_subsequent_assign_lines(cls: type) -> set[int]:
223+
def get_subsequent_assign_lines(cls: type) -> Set[int]:
223224
"""For all multiline assign statements, get the line numbers after the first line of the assignment."""
224225
# Get source code of class
225226
source = inspect.getsource(cls)

0 commit comments

Comments
 (0)