From 305cf81951be237507b42b78f256a29537064d8a Mon Sep 17 00:00:00 2001 From: FloraSauerbronn Date: Fri, 30 Aug 2024 18:09:54 -0300 Subject: [PATCH] Fixing pre-commit errors2 --- gliderpy/plotting.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gliderpy/plotting.py b/gliderpy/plotting.py index aac0d89..ce05177 100644 --- a/gliderpy/plotting.py +++ b/gliderpy/plotting.py @@ -28,7 +28,7 @@ @register_dataframe_method -def plot_track(df: pd.DataFrame) -> tuple(plt.Figure, plt.Axes): +def plot_track(df: pd.DataFrame) -> tuple[plt.Figure, plt.Axes]: """Plot a track of glider path coloured by temperature. :return: figures, axes @@ -53,7 +53,7 @@ def plot_transect( var: str, ax: plt.Axes = None, **kw: dict, -) -> tuple(plt.Figure, plt.Axes): +) -> tuple[plt.Figure, plt.Axes]: """Make a scatter plot of depth vs time coloured by a user defined variable. @@ -103,7 +103,7 @@ def plot_ctd( var: str, ax: plt.Axes = None, color: str | None = None, -) -> tuple(plt.Figure, plt.Axes): +) -> tuple[plt.Figure, plt.Axes]: """Make a CTD profile plot of pressure vs property depending on what variable was chosen. @@ -133,8 +133,9 @@ def plot_ctd( def plot_ts( df: pd.DataFrame, profile_number: int, -) -> tuple(plt.Figure, plt.Axes): - """ Make a TS - Diagram from a chosen profile number. +) -> tuple[plt.Figure, plt.Axes]: + """Make a TS diagram from a chosen profile number. + :param profile_number: profile number of CTD :return: figure, axes """