Skip to content

Commit fb81129

Browse files
committed
Add type annotations to refstate module
1 parent 56bfe74 commit fb81129

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stagpy/refstate.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
"""Plot reference state profiles."""
22

3+
from __future__ import annotations
4+
35
import matplotlib.pyplot as plt
46

57
from . import conf, _helpers
68
from .phyvars import REFSTATE
79
from .stagyydata import StagyyData
810

911

10-
def plot_ref(sdat, var):
12+
def plot_ref(sdat: StagyyData, var: str):
1113
"""Plot one reference state.
1214
1315
Args:
14-
sdat (:class:`~stagpy.stagyydata.StagyyData`): a StagyyData instance.
15-
var (str): refstate variable, a key of
16-
:data:`~stagpy.phyvars.REFSTATE`.
16+
sdat: a :class:`~stagpy.stagyydata.StagyyData` instance.
17+
var: refstate variable, a key of :data:`~stagpy.phyvars.REFSTATE`.
1718
"""
1819
fig, axis = plt.subplots()
1920
adbts = sdat.refstate.adiabats

0 commit comments

Comments
 (0)