diff --git a/plotid/tagplot.py b/plotid/tagplot.py index da6a33407248ccb9adedb69e4d046e307102d017..25373320b4c6ed4228b543885b2b9e5164f1d480 100644 --- a/plotid/tagplot.py +++ b/plotid/tagplot.py @@ -11,7 +11,7 @@ Functions: """ import warnings -from typing import Literal, TypedDict +from typing import Any, Literal import matplotlib.pyplot as plt from PIL.Image import Image @@ -20,21 +20,11 @@ from plotid.tagplot_matplotlib import tagplot_matplotlib from plotid.tagplot_image import tagplot_image -kwargs_types = TypedDict( - "kwargs_types", - { - "prefix": str, - "id_method": Literal["time", "random"], - "qrcode": bool, - }, -) - - def tagplot( figs: plt.Figure | Image | list[plt.Figure | Image], engine: Literal["matplotlib", "image"], location: str = "east", - **kwargs: kwargs_types, + **kwargs: Any, ) -> PlotIDTransfer: """ Tag your figure/plot with an ID. diff --git a/plotid/tagplot_image.py b/plotid/tagplot_image.py index 545fad363e40ec803e9bb826d7eb3b01b7511b29..ca1b869ceddac31031abc795a6442361877b5122 100644 --- a/plotid/tagplot_image.py +++ b/plotid/tagplot_image.py @@ -29,7 +29,7 @@ def tagplot_image(plotid_object: PlotOptions) -> PlotIDTransfer: # Check if plotid_object is a valid instance of PlotOptions if not isinstance(plotid_object, PlotOptions): raise TypeError( - "The given options container is not an instance" "of PlotOptions." + "The given options container is not an instance of PlotOptions." ) # Check if figs is a list of files diff --git a/plotid/tagplot_matplotlib.py b/plotid/tagplot_matplotlib.py index 118b0a4b5fdbbebbb19bf8169f6d5a39d5ce58a2..8d83baf82cc44fc2f9495060b99a79002a77a2bc 100644 --- a/plotid/tagplot_matplotlib.py +++ b/plotid/tagplot_matplotlib.py @@ -27,7 +27,7 @@ def tagplot_matplotlib(plotid_object: PlotOptions) -> PlotIDTransfer: # Check if plotid_object is a valid instance of PlotOptions if not isinstance(plotid_object, PlotOptions): raise TypeError( - "The given options container is not an instance" "of PlotOptions." + "The given options container is not an instance of PlotOptions." ) # Check if figs is a list of valid figures