Skip to content

Commit

Permalink
CLN: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Dec 23, 2023
1 parent 50b58a9 commit 575bf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastf1/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def get_event(
force_ergast=force_ergast,
backend=backend)

if type(gp) is str:
if isinstance(gp, str):
event = schedule.get_event_by_name(gp, strict_search=strict_search)
else:
event = schedule.get_event_by_round(gp)
Expand Down

0 comments on commit 575bf92

Please sign in to comment.