wip
This commit is contained in:
@@ -93,7 +93,7 @@ def _keys(
|
||||
}
|
||||
|
||||
|
||||
def _ttl_kwargs(ttl: datetime | int | None = None, tz=None):
|
||||
def _ttl_kwargs(ttl: datetime | int | None = None, tz=None) -> dict:
|
||||
if not ttl:
|
||||
return {}
|
||||
|
||||
@@ -109,7 +109,7 @@ def _ttl_kwargs(ttl: datetime | int | None = None, tz=None):
|
||||
}
|
||||
|
||||
|
||||
class MissingError(ValueError):
|
||||
class MissingRecordError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ def get_record(
|
||||
glom_spec: str | None = None,
|
||||
raise_on_missing: bool = True,
|
||||
default_on_missing: Any = None,
|
||||
missing_cls: Type[Exception] = MissingError,
|
||||
missing_cls: Type[Exception] = MissingRecordError,
|
||||
delimiter: str = DELIMITER,
|
||||
persistence_layer: DynamoDBPersistenceLayer,
|
||||
) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user