We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ea750 commit 5b02bacCopy full SHA for 5b02bac
src/emsarray/plot/__init__.py
@@ -1,4 +1,4 @@
1
-from typing import Any
+from typing import Any, Callable
2
3
from emsarray.utils import RequiresExtraException, requires_extra
4
@@ -52,4 +52,5 @@ def __getattr__(name: str) -> Any:
52
]
53
54
55
-_requires_plot = requires_extra(extra='plot', import_error=IMPORT_EXCEPTION)
+type RequiresPlot[T] = Callable[[T], T]
56
+_requires_plot: RequiresPlot = requires_extra(extra='plot', import_error=IMPORT_EXCEPTION)
0 commit comments