Skip to content

Commit b45667b

Browse files
committed
Bring union back
1 parent 2b807ac commit b45667b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linode_api4/groups/lock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Union
2+
13
from linode_api4.errors import UnexpectedResponseError
24
from linode_api4.groups import Group
35
from linode_api4.objects import Lock, LockType
@@ -36,8 +38,8 @@ def __call__(self, *filters):
3638
def create(
3739
self,
3840
entity_type: str,
39-
entity_id: int | str,
40-
lock_type: LockType | str = LockType.cannot_delete,
41+
entity_id: Union[int, str],
42+
lock_type: Union[LockType, str] = LockType.cannot_delete,
4143
) -> Lock:
4244
"""
4345
Creates a new Resource Lock for the specified entity.

0 commit comments

Comments
 (0)