Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def retrieve_online_documents_v2(
config: The config for the current feature store.
table: The feature view whose embeddings should be searched.
requested_features: the requested document feature names.
query: The query embedding to search for (optional).
embedding: The query embedding to search for (optional).
top_k: The number of documents to return.
query_string: The query string to search for using keyword search (bm25) (optional)
filters: Optional metadata filters (ComparisonFilter or CompoundFilter)
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/registry/base_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ def delete_project(
Deletes a project or raises an ProjectNotFoundException exception if not found.

Args:
project: Feast project name that needs to be deleted
name: Feast project name that needs to be deleted
commit: Whether the change should be persisted immediately
"""
raise NotImplementedError
Expand Down
14 changes: 7 additions & 7 deletions sdk/python/feast/permissions/decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ class DecisionStrategy(enum.Enum):

class DecisionEvaluator:
"""
A class to implement the decision logic, according to the selected strategy.
A class to implement the decision logic.
Only the `AFFIRMATIVE` strategy is currently supported.
Args:
decision_strategy: The associated `DecisionStrategy`.
num_of_voters: The expected number of votes to complete the decision.
Examples:
Create the instance and specify the strategy and number of decisions:
`evaluator = DecisionEvaluator(DecisionStrategy.UNANIMOUS, 3)
Create the instance and specify the number of voters:
`evaluator = DecisionEvaluator(3)`
For each vote that you receivem, add a decision grant: `evaluator.add_grant(vote, message)`
For each vote that you receive, add a decision grant: `evaluator.add_grant(vote, message)`
and check if the decision process ended: `if evaluator.is_decided():`
Once decided, get the result and the failure explanations using:
`grant, explanations = evaluator.grant()`
Expand Down Expand Up @@ -92,8 +92,8 @@ def add_grant(self, grant: bool, explanation: str):
If the evaluation process already ended, additional votes are discarded.
Args:
grant: `True` is the decision is accepted, `False` otherwise.
explanation: Denial reason (not considered when `vote` is `True`).
grant: `True` if the decision is accepted, `False` otherwise.
explanation: Denial reason (not considered when `grant` is `True`).
"""

if self.is_decided():
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/permissions/server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def init_security_manager(auth_type: AuthManagerType, fs: "feast.FeatureStore"):
Args:
auth_type: The authorization manager type.
registry: The feature store registry.
fs: The feature store.
"""
if auth_type == AuthManagerType.NONE:
logger.warning(
Expand Down
6 changes: 3 additions & 3 deletions sdk/python/feast/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ def is_valid(self):
@classmethod
def from_proto(cls, project_proto: ProjectProto):
"""
Creates a project from a protobuf representation of an project.
Creates a project from a protobuf representation of a project.
Args:
entity_proto: A protobuf representation of an project.
project_proto: A protobuf representation of a project.
Returns:
An Entity object based on the entity protobuf.
A Project object based on the project protobuf.
"""
project = cls(
name=project_proto.spec.name,
Expand Down
1 change: 0 additions & 1 deletion sdk/python/feast/ssl_ca_trust_store_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
def configure_ca_trust_store_env_variables():
"""
configures the environment variable so that other libraries or servers refer to the TLS ca file path.
:param ca_file_path:
:return:
"""
if (
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/feast/type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1588,10 +1588,10 @@ def python_values_to_proto_values(

def _proto_value_to_value_type(proto_value: ProtoValue) -> ValueType:
"""
Returns Feast ValueType given Feast ValueType string.
Returns Feast ValueType given a Feast proto value.
Args:
proto_str: str
proto_value: ProtoValue
Returns:
A variant of ValueType.
Expand Down