diff --git a/sdk/python/feast/feature_server.py b/sdk/python/feast/feature_server.py index ee3397717a..2124e6d1ca 100644 --- a/sdk/python/feast/feature_server.py +++ b/sdk/python/feast/feature_server.py @@ -71,7 +71,7 @@ class MaterializeIncrementalRequest(BaseModel): class GetOnlineFeaturesRequest(BaseModel): entities: Dict[str, List[Any]] feature_service: Optional[str] = None - features: List[str] = Field(default_factory=list) + features: Optional[List[str]] = Field(default_factory=list) full_feature_names: bool = False @@ -252,8 +252,8 @@ def materialize(request: MaterializeRequest): for feature_view in request.feature_views or []: # TODO: receives a str for resource but isn't in the Union. is str actually allowed? assert_permissions( - resource=feature_view, - actions=[AuthzedAction.WRITE_ONLINE], # type: ignore + resource=feature_view, # type: ignore + actions=[AuthzedAction.WRITE_ONLINE], ) store.materialize( utils.make_tzaware(parser.parse(request.start_ts)), @@ -266,8 +266,8 @@ def materialize_incremental(request: MaterializeIncrementalRequest): for feature_view in request.feature_views or []: # TODO: receives a str for resource but isn't in the Union. is str actually allowed? assert_permissions( - resource=feature_view, - actions=[AuthzedAction.WRITE_ONLINE], # type: ignore + resource=feature_view, # type: ignore + actions=[AuthzedAction.WRITE_ONLINE], ) store.materialize_incremental( utils.make_tzaware(parser.parse(request.end_ts)), request.feature_views