Skip to content

Commit 2500dd3

Browse files
Jwredentkathole
authored andcommitted
fix(dynamodb): Fix mypy type for _build_projection_expression return
The return dict contains both str and Dict[str, str] values, so the return type must be Dict[str, Any] not Dict[str, str]. Signed-off-by: Jonathan Wrede <wrede.jonathan00@gmail.com>
1 parent 7cb24c1 commit 2500dd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/python/feast/infra/online_stores/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ def _to_client_batch_get_payload(
794794
@staticmethod
795795
def _build_projection_expression(
796796
requested_features: Optional[List[str]],
797-
) -> Optional[Dict[str, str]]:
797+
) -> Optional[Dict[str, Any]]:
798798
if not requested_features:
799799
return None
800800
attr_names: Dict[str, str] = {

0 commit comments

Comments
 (0)