From d1f1f6e835ff48741fda9f8dec106f90dfa829d9 Mon Sep 17 00:00:00 2001 From: Kieran Ryan Date: Mon, 18 Mar 2024 15:22:47 +0000 Subject: [PATCH] Type hint not always a callable --- behave_cucumber_matcher/matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behave_cucumber_matcher/matcher.py b/behave_cucumber_matcher/matcher.py index fac4a0b..a565de1 100644 --- a/behave_cucumber_matcher/matcher.py +++ b/behave_cucumber_matcher/matcher.py @@ -20,7 +20,7 @@ class ParameterTypeOverrides(cucumber_expressions.parameter_type.ParameterType): def __init__( # noqa: D107 self, *args, - type: Callable, # noqa: A002 + type: Any, # noqa: A002 # Fixes missing defaults in Cucumber Expressions below or equal to 17.0.2 transformer: Optional[Callable] = None, # Fixes missing defaults in Cucumber Expressions below 17.0.2