We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b807ac commit b45667bCopy full SHA for b45667b
linode_api4/groups/lock.py
@@ -1,3 +1,5 @@
1
+from typing import Union
2
+
3
from linode_api4.errors import UnexpectedResponseError
4
from linode_api4.groups import Group
5
from linode_api4.objects import Lock, LockType
@@ -36,8 +38,8 @@ def __call__(self, *filters):
36
38
def create(
37
39
self,
40
entity_type: str,
- entity_id: int | str,
- lock_type: LockType | str = LockType.cannot_delete,
41
+ entity_id: Union[int, str],
42
+ lock_type: Union[LockType, str] = LockType.cannot_delete,
43
) -> Lock:
44
"""
45
Creates a new Resource Lock for the specified entity.
0 commit comments