Skip to content

Commit

Permalink
MNT: bump some warnings to make them more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Oct 16, 2024
1 parent 94fb599 commit 8dd6b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastf1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2975,7 +2975,7 @@ def pick_lap(self, lap_number: int) -> "Laps":
"""
warnings.warn(("pick_lap is deprecated and will be removed in a "
"future release. Use pick_laps instead."),
DeprecationWarning)
FutureWarning)
return self[self['LapNumber'] == lap_number]

def pick_laps(self, lap_numbers: Union[int, Iterable[int]]) -> "Laps":
Expand Down Expand Up @@ -3021,7 +3021,7 @@ def pick_driver(self, identifier: Union[int, str]) -> "Laps":
"""
warnings.warn(("pick_driver is deprecated and will be removed"
" in a future release. Use pick_drivers instead."),
DeprecationWarning)
FutureWarning)
identifier = str(identifier)
if identifier.isdigit():
return self[self['DriverNumber'] == identifier]
Expand Down Expand Up @@ -3072,7 +3072,7 @@ def pick_team(self, name: str) -> "Laps":
"""
warnings.warn(("pick_team is deprecated and will be removed"
" in a future release. Use pick_teams instead."),
DeprecationWarning)
FutureWarning)
return self[self['Team'] == name]

def pick_teams(self, names: Union[str, Iterable[str]]) -> "Laps":
Expand Down Expand Up @@ -3180,7 +3180,7 @@ def pick_tyre(self, compound: str) -> "Laps":
"""
warnings.warn(("pick_tyre is deprecated and will be removed"
" in a future release. Use pick_compound instead."),
DeprecationWarning)
FutureWarning)
return self[self['Compound'] == compound.upper()]

def pick_compounds(self, compounds: Union[str, Iterable[str]]) -> "Laps":
Expand Down

0 comments on commit 8dd6b1a

Please sign in to comment.