Skip to content

Commit c289a9f

Browse files
author
alex-omophub
committed
Refactor type hinting for vocabulary_ids to use builtins.list for consistency
1 parent a213047 commit c289a9f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/omophub/resources/vocabularies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import builtins
56
from typing import TYPE_CHECKING, Any
67

78
if TYPE_CHECKING:
@@ -92,7 +93,7 @@ def stats(self, vocabulary_id: str) -> VocabularyStats:
9293
def domains(
9394
self,
9495
*,
95-
vocabulary_ids: list[str] | None = None,
96+
vocabulary_ids: builtins.list[str] | None = None,
9697
page: int = 1,
9798
page_size: int = 50,
9899
) -> dict[str, Any]:
@@ -202,7 +203,7 @@ async def stats(self, vocabulary_id: str) -> VocabularyStats:
202203
async def domains(
203204
self,
204205
*,
205-
vocabulary_ids: list[str] | None = None,
206+
vocabulary_ids: builtins.list[str] | None = None,
206207
page: int = 1,
207208
page_size: int = 50,
208209
) -> dict[str, Any]:

0 commit comments

Comments
 (0)