From 575bf92d20ac4469b21ec3f0af49c9be83039e6e Mon Sep 17 00:00:00 2001 From: theOehrly <23384863+theOehrly@users.noreply.github.com> Date: Sat, 23 Dec 2023 18:11:24 +0100 Subject: [PATCH] CLN: fix lint error --- fastf1/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastf1/events.py b/fastf1/events.py index 6c214d980..473bd633a 100644 --- a/fastf1/events.py +++ b/fastf1/events.py @@ -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)