Skip to content

Commit

Permalink
Use List from typing for Python 3.8 compatibility (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Oct 24, 2023
1 parent 3568984 commit 1fba252
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/biocutils/match.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from typing import Sequence, Tuple, Union
from typing import List, Sequence, Union

from .map_to_index import map_to_index, DUPLICATE_METHOD
from .map_to_index import DUPLICATE_METHOD, map_to_index


def match(
x: Sequence,
targets: Union[dict, Sequence],
duplicate_method: DUPLICATE_METHOD = "first",
) -> list[Union[int, None]]:
) -> List[Union[int, None]]:
"""Find a matching value of each element of ``x`` in ``target``.
Args:
Expand Down
2 changes: 1 addition & 1 deletion src/biocutils/union.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Sequence, Tuple
from typing import Sequence

from .map_to_index import DUPLICATE_METHOD

Expand Down

0 comments on commit 1fba252

Please sign in to comment.