Skip to content

Commit

Permalink
Fix another type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Oct 27, 2023
1 parent e1f854a commit e4eefb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions welkin/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import date, datetime, timezone
from functools import lru_cache, wraps
from typing import Any, Callable, Union
from typing import Any, Callable, Tuple, Union
from uuid import UUID

import inflection
Expand Down Expand Up @@ -116,7 +116,7 @@ def find_model_id(instance: Union[Collection, Resource], model_name: str) -> str
"""Recursively traverse the `_parent` chain searching for a model id.
Args:
instance (Collection | Resource): The instanceect instance to inspect.
instance (Union[Collection, Resource]): The instanceect instance to inspect.
model_name (str): The class name of the model to find.
Raises:
Expand All @@ -139,11 +139,11 @@ def find_model_id(instance: Union[Collection, Resource], model_name: str) -> str
)


def model_id(*models: tuple[str]) -> Callable:
def model_id(*models: Tuple[str]) -> Callable:
"""Insert values for `model_id` arguments if not provided.
Args:
*models (tuple[str]): The model names to search for.
*models (Tuple[str]): The model names to search for.
Raises:
TypeError: If no ID is found and no arguments are provided.
Expand Down

0 comments on commit e4eefb3

Please sign in to comment.