Skip to content

Commit a125c80

Browse files
committed
fix type
1 parent 850dfa1 commit a125c80

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/anyvlm/anyvar/base_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Provide abstraction for a AnyVLM-to-AnyVar connection."""
22

33
import abc
4-
from collections.abc import Iterable
4+
from collections.abc import Iterable, Sequence
55

66
from anyvar.utils.liftover_utils import ReferenceAssembly
77
from anyvar.utils.types import VrsVariation
@@ -26,7 +26,7 @@ def put_allele_expressions(
2626
self,
2727
expressions: Iterable[str],
2828
assembly: ReferenceAssembly = ReferenceAssembly.GRCH38,
29-
) -> list[str | None]:
29+
) -> Sequence[str | None]:
3030
"""Submit allele expressions to an AnyVar instance and retrieve corresponding VRS IDs
3131
3232
:param expressions: variation expressions to register

src/anyvlm/anyvar/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Provide abstraction for a VLM-to-AnyVar connection."""
22

33
import logging
4-
from collections.abc import Iterable
4+
from collections.abc import Iterable, Sequence
55
from http import HTTPStatus
66

77
import requests
@@ -37,7 +37,7 @@ def put_allele_expressions(
3737
self,
3838
expressions: Iterable[str],
3939
assembly: ReferenceAssembly = ReferenceAssembly.GRCH38,
40-
) -> list[str | None]:
40+
) -> Sequence[str | None]:
4141
"""Submit allele expressions to an AnyVar instance and retrieve corresponding VRS IDs
4242
4343
:param expressions: variation expressions to register

src/anyvlm/anyvar/python_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Implement AnyVar client interface for direct Python-based access."""
22

33
import logging
4-
from collections.abc import Iterable
4+
from collections.abc import Iterable, Sequence
55

66
from anyvar import AnyVar
77
from anyvar.storage.base_storage import Storage
@@ -30,7 +30,7 @@ def put_allele_expressions(
3030
self,
3131
expressions: Iterable[str],
3232
assembly: ReferenceAssembly = ReferenceAssembly.GRCH38,
33-
) -> list[str | None]:
33+
) -> Sequence[str | None]:
3434
"""Submit allele expressions to an AnyVar instance and retrieve corresponding VRS IDs
3535
3636
:param expressions: variation expressions to register

0 commit comments

Comments
 (0)