Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Joris Bekkers committed Aug 16, 2023
1 parent bc49399 commit 0a14c89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kloppy/domain/services/event_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def create_event(event_cls: Type[T], **kwargs) -> T:
if "freeze_frame" not in kwargs:
kwargs["freeze_frame"] = None

if 'qualifiers' not in kwargs:
kwargs['qualifiers'] = None
if "qualifiers" not in kwargs:
kwargs["qualifiers"] = None

all_kwargs = dict(**kwargs, **extra_kwargs)

Expand All @@ -58,7 +58,7 @@ def create_event(event_cls: Type[T], **kwargs) -> T:
and field.name not in all_kwargs
)
}

if len(relevant_kwargs) < len(all_kwargs):
skipped_kwargs = set(all_kwargs.keys()) - set(relevant_kwargs.keys())
warnings.warn(
Expand Down

0 comments on commit 0a14c89

Please sign in to comment.