Skip to content

Commit

Permalink
fix(pm4py): fixed typing of pm4py.filter_variants
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Mar 1, 2024
1 parent 56799b6 commit c9654d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm4py/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def filter_trace_attribute_values(log: Union[EventLog, pd.DataFrame], attribute_
return attributes_filter.apply_trace_attribute(log, values, parameters=parameters)


def filter_variants(log: Union[EventLog, pd.DataFrame], variants: Union[Set[str], List[str]], retain: bool = True, activity_key: str = "concept:name", timestamp_key: str = "time:timestamp", case_id_key: str = "case:concept:name") -> Union[
def filter_variants(log: Union[EventLog, pd.DataFrame], variants: Union[Set[str], List[str], List[Tuple[str]]], retain: bool = True, activity_key: str = "concept:name", timestamp_key: str = "time:timestamp", case_id_key: str = "case:concept:name") -> Union[
EventLog, pd.DataFrame]:
"""
Filter a log on a specified set of variants
Expand Down

0 comments on commit c9654d8

Please sign in to comment.