Skip to content

Commit

Permalink
Fixing Python 3.8 type hint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Aug 24, 2024
1 parent 69f78d3 commit 3980c81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
List,
Literal,
Optional,
Set,
Tuple,
Union,
)
Expand Down Expand Up @@ -219,7 +220,7 @@ def source_line_to_tokens(obj: object) -> Dict[int, List[Dict[str, Union[str, in
return line_to_tokens


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

0 comments on commit 3980c81

Please sign in to comment.