Skip to content

Commit

Permalink
💬 Update type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
arafune committed Mar 14, 2024
1 parent de57db4 commit c6b2d9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/arpes/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
EMISSION_ANGLE = Literal["phi", "psi"]
ANGLE = Literal["alpha", "beta", "chi", "theta"] | EMISSION_ANGLE

LegendLocation = (
LEGENDLOCATION = (
Literal[
"best",
0,
Expand Down
6 changes: 3 additions & 3 deletions src/arpes/plotting/stack_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from matplotlib.typing import ColorType, RGBAColorType, RGBColorType
from numpy.typing import NDArray

from arpes._typing import ColorbarParam, LegendLocation, MPLPlotKwargsBasic
from arpes._typing import LEGENDLOCATION, ColorbarParam, MPLPlotKwargsBasic
__all__ = (
"stack_dispersion_plot",
"flat_stack_plot",
Expand Down Expand Up @@ -77,7 +77,7 @@ def offset_scatter_plot(
scale_coordinate: float = 0.5,
ylim: tuple[float, float] | tuple[()] = (),
fermi_level: float | None = None,
loc: LegendLocation = "upper left",
loc: LEGENDLOCATION = "upper left",
figsize: tuple[float, float] = (11, 5),
*,
aux_errorbars: bool = True,
Expand Down Expand Up @@ -222,7 +222,7 @@ def flat_stack_plot( # noqa: PLR0913
figsize: tuple[float, float] = (7, 5),
title: str = "",
out: str | Path = "",
loc: LegendLocation = "upper left",
loc: LEGENDLOCATION = "upper left",
**kwargs: Unpack[MPLPlotKwargsBasic],
) -> Path | tuple[Figure | None, Axes]:
"""Generates a stack plot with all the lines distinguished by color rather than offset.
Expand Down

0 comments on commit c6b2d9c

Please sign in to comment.