From 2aa3b70fea7e41ff6f53e2f743f2311aabf81c42 Mon Sep 17 00:00:00 2001 From: "alexander.schuetz" Date: Wed, 28 Feb 2024 13:59:25 +0100 Subject: [PATCH] Added type hint for "log"-parameter in function filter_variants() --- pm4py/filtering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm4py/filtering.py b/pm4py/filtering.py index 1d2a479ef..2011fc6b1 100644 --- a/pm4py/filtering.py +++ b/pm4py/filtering.py @@ -215,7 +215,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