Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 5e68173

Browse files
committed
deta/base, deta/_async: force named arguments for expire_in and expire_at for put and insert
1 parent eb8ba21 commit 5e68173

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

deta/_async/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ async def insert(
5858
self,
5959
data: typing.Union[dict, list, str, int, bool],
6060
key: str = None,
61+
*,
6162
expire_in: int = None,
6263
expire_at: typing.Union[int, float, datetime.datetime] = None,
6364
):
@@ -79,6 +80,7 @@ async def put(
7980
self,
8081
data: typing.Union[dict, list, str, int, bool],
8182
key: str = None,
83+
*,
8284
expire_in: int = None,
8385
expire_at: typing.Union[int, float, datetime.datetime] = None,
8486
):

deta/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def insert(
112112
self,
113113
data: typing.Union[dict, list, str, int, bool],
114114
key: str = None,
115+
*,
115116
expire_in: int = None,
116117
expire_at: typing.Union[int, float, datetime.datetime] = None,
117118
):
@@ -136,6 +137,7 @@ def put(
136137
self,
137138
data: typing.Union[dict, list, str, int, bool],
138139
key: str = None,
140+
*,
139141
expire_in: int = None,
140142
expire_at: typing.Union[int, float, datetime.datetime] = None,
141143
):

0 commit comments

Comments
 (0)