Skip to content

Commit

Permalink
Fix type hint for backwards-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Oct 27, 2023
1 parent c30f217 commit 0cee096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions welkin/util.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import date, datetime, timezone
from functools import cache, wraps
from types import FunctionType
from typing import Any
from typing import Any, Union
from uuid import UUID

import inflection
Expand Down Expand Up @@ -113,7 +113,7 @@ def clean_datetime(dt: datetime) -> str:
)


def find_model_id(instance: Collection | Resource, model_name: str) -> str:
def find_model_id(instance: Union[Collection, Resource], model_name: str) -> str:
"""Recursively traverse the `_parent` chain searching for a model id.
Args:
Expand Down

0 comments on commit 0cee096

Please sign in to comment.