diff --git a/kloppy/domain/services/event_factory.py b/kloppy/domain/services/event_factory.py index fbbfaa69..33fe4f61 100644 --- a/kloppy/domain/services/event_factory.py +++ b/kloppy/domain/services/event_factory.py @@ -41,10 +41,6 @@ def create_event(event_cls: Type[T], **kwargs) -> T: but we filter those arguments out. """ extra_kwargs = {"state": {}} - - if "qualifiers" not in kwargs: - kwargs["qualifiers"] = None - if "related_event_ids" not in kwargs: extra_kwargs["related_event_ids"] = [] diff --git a/kloppy/infra/serializers/event/sportec/deserializer.py b/kloppy/infra/serializers/event/sportec/deserializer.py index be0b8104..fa29f753 100644 --- a/kloppy/infra/serializers/event/sportec/deserializer.py +++ b/kloppy/infra/serializers/event/sportec/deserializer.py @@ -112,10 +112,7 @@ def sportec_metadata_from_xml_elm(match_root) -> SportecMetadata: if not away_team: raise DeserializationError("Away team is missing from metadata") - ( - home_score, - away_score, - ) = match_root.MatchInformation.General.attrib[ + (home_score, away_score,) = match_root.MatchInformation.General.attrib[ "Result" ].split(":") score = Score(home=int(home_score), away=int(away_score)) diff --git a/kloppy/infra/serializers/event/statsbomb/deserializer.py b/kloppy/infra/serializers/event/statsbomb/deserializer.py index 920774a0..419e96ac 100644 --- a/kloppy/infra/serializers/event/statsbomb/deserializer.py +++ b/kloppy/infra/serializers/event/statsbomb/deserializer.py @@ -228,7 +228,7 @@ def create_periods(self, raw_events): ::2 ] # recorded for each team, take every other periods = [] - for start_event, end_event in zip_longest( + for (start_event, end_event) in zip_longest( half_start_and_end_events[::2], half_start_and_end_events[1::2] ): if (