From 7a4743e4505f6001f34aada8a07d7651312cde83 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Tue, 24 Oct 2023 09:36:06 -0700 Subject: [PATCH] use List from typing --- src/biocutils/match.py | 6 +++--- src/biocutils/union.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/biocutils/match.py b/src/biocutils/match.py index cad35eb..8db953a 100644 --- a/src/biocutils/match.py +++ b/src/biocutils/match.py @@ -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: diff --git a/src/biocutils/union.py b/src/biocutils/union.py index eb52da7..89731fa 100644 --- a/src/biocutils/union.py +++ b/src/biocutils/union.py @@ -1,4 +1,4 @@ -from typing import Sequence, Tuple +from typing import Sequence from .map_to_index import DUPLICATE_METHOD