11
11
12
12
from pynamodb .models import Model as PynamodbModel
13
13
from pynamodb .indexes import GlobalSecondaryIndex , LocalSecondaryIndex
14
- from pynamodb .settings import OperationSettings
15
14
from pynamodb .exceptions import DeleteError
16
15
from pynamodb .expressions .condition import Condition
17
16
@@ -132,7 +131,6 @@ def get_one_or_none(
132
131
range_key : T .Optional [T .Any ] = None ,
133
132
consistent_read : bool = False ,
134
133
attributes_to_get : T .Optional [T .Sequence [str ]] = None ,
135
- settings : OperationSettings = OperationSettings .default ,
136
134
) -> T .Optional ["Model" ]:
137
135
"""
138
136
Get one Dynamodb item object or None if not exists.
@@ -145,7 +143,6 @@ def get_one_or_none(
145
143
range_key = range_key ,
146
144
consistent_read = consistent_read ,
147
145
attributes_to_get = attributes_to_get ,
148
- settings = settings ,
149
146
)
150
147
except cls .DoesNotExist :
151
148
return None
@@ -240,7 +237,6 @@ def iter_scan(
240
237
index_name : T .Optional [str ] = None ,
241
238
rate_limit : T .Optional [float ] = None ,
242
239
attributes_to_get : T .Optional [T .Sequence [str ]] = None ,
243
- settings : OperationSettings = OperationSettings .default ,
244
240
) -> IterProxy [_T ]:
245
241
"""
246
242
Similar to the ``Model.scan()`` method, but it returns
@@ -260,7 +256,6 @@ def iter_scan(
260
256
index_name = index_name ,
261
257
rate_limit = rate_limit ,
262
258
attributes_to_get = attributes_to_get ,
263
- settings = settings ,
264
259
)
265
260
)
266
261
@@ -278,7 +273,6 @@ def iter_query(
278
273
attributes_to_get : T .Optional [T .Iterable [str ]] = None ,
279
274
page_size : T .Optional [int ] = None ,
280
275
rate_limit : T .Optional [float ] = None ,
281
- settings : OperationSettings = OperationSettings .default ,
282
276
) -> IterProxy [_T ]:
283
277
"""
284
278
Similar to the ``Model.query()`` method, but it returns
@@ -299,7 +293,6 @@ def iter_query(
299
293
attributes_to_get = attributes_to_get ,
300
294
page_size = page_size ,
301
295
rate_limit = rate_limit ,
302
- settings = settings ,
303
296
)
304
297
)
305
298
0 commit comments