Skip to content

Commit

Permalink
use Typing.Callable
Browse files Browse the repository at this point in the history
  • Loading branch information
flpm committed Jun 8, 2024
1 parent e0a9348 commit 449636f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data_morph/plotting/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import math
from functools import wraps
from pathlib import Path
from typing import Union
from typing import Callable, Union

from PIL import Image

Expand Down Expand Up @@ -67,18 +67,18 @@ def stitch_gif_animation(
Path(img).unlink()


def check_step(easing_function: callable) -> callable:
def check_step(easing_function: Callable) -> Callable:
"""
Decorator to check if the step is a float or int and if it is between 0 and 1.
Parameters
----------
easing_function : callable
easing_function : Callable
The easing function to be checked.
Returns
-------
callable
Callable
The easing function with the check for the step.
"""

Expand Down

0 comments on commit 449636f

Please sign in to comment.