Skip to content

Commit

Permalink
Fix various typing annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Oct 18, 2023
1 parent 2ec9dc3 commit 9293ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion colour_hdri/plotting/hdri.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.axes import Axes
from matplotlib.figure import Figure

from colour.hints import Any, ArrayLike, Callable, Tuple
from colour.plotting import CONSTANTS_COLOUR_STYLE, override_style, render
Expand All @@ -38,7 +40,7 @@ def plot_HDRI_strip(
ev_steps: float = -2,
cctf_encoding: Callable = CONSTANTS_COLOUR_STYLE.colour.colourspace.cctf_encoding,
**kwargs: Any,
) -> Tuple[plt.Figure, plt.Axes]:
) -> Tuple[Figure, Axes]:
"""
Plot given HDRI as strip of images of varying exposure.
Expand Down
4 changes: 3 additions & 1 deletion colour_hdri/plotting/tonemapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import matplotlib.pyplot as plt
import matplotlib.ticker
import numpy as np
from matplotlib.axes import Axes
from matplotlib.figure import Figure

from colour.hints import Any, ArrayLike, Callable, Dict, Tuple
from colour.plotting import (
Expand Down Expand Up @@ -41,7 +43,7 @@ def plot_tonemapping_operator_image(
log_scale: bool = False,
cctf_encoding: Callable = CONSTANTS_COLOUR_STYLE.colour.colourspace.cctf_encoding,
**kwargs: Any,
) -> Tuple[plt.Figure, plt.Axes]:
) -> Tuple[Figure, Axes]:
"""
Plot given tonemapped image with superimposed luminance mapping function.
Expand Down

0 comments on commit 9293ef9

Please sign in to comment.