From c5bf6e77a7d007230486dc40255fa7c0253ab980 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 14 May 2024 20:08:40 -0400 Subject: [PATCH] confighelper: type checking fix Signed-off-by: Eric Callahan --- moonraker/confighelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/confighelper.py b/moonraker/confighelper.py index c0da888..aa802d6 100644 --- a/moonraker/confighelper.py +++ b/moonraker/confighelper.py @@ -123,7 +123,7 @@ class ConfigHelper: ) def _get_option(self, - func: Callable[..., _T], + func: Callable[..., Any], option: str, default: Union[Sentinel, _T], above: Optional[Union[int, float]] = None, @@ -131,7 +131,7 @@ class ConfigHelper: minval: Optional[Union[int, float]] = None, maxval: Optional[Union[int, float]] = None, deprecate: bool = False - ) -> _T: + ) -> Any: section = self.section warn_fallback = False if (