From 0e945fe39da691b18fdb067519bd06b67cf0c913 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Wed, 20 Mar 2024 11:27:09 +0100 Subject: [PATCH] Fix typing Signed-off-by: Matthijs van der Burgh --- launch/launch/substitutions/boolean_substitution.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch/launch/substitutions/boolean_substitution.py b/launch/launch/substitutions/boolean_substitution.py index e61713ed3..83384386c 100644 --- a/launch/launch/substitutions/boolean_substitution.py +++ b/launch/launch/substitutions/boolean_substitution.py @@ -69,7 +69,7 @@ def perform(self, context: LaunchContext) -> Text: class LeftRightLogicalSubstitution(Substitution): """Substitution that returns the result of logical evaluation of the input boolean values.""" - def __init__(self, func: Callable[[bool, bool], bool], left: SomeSubstitutionsType, right: SomeSubstitutionsType) -> None: + def __init__(self, func: Callable[[StrSomeValueType, StrSomeValueType], bool], left: SomeSubstitutionsType, right: SomeSubstitutionsType) -> None: """Create an LeftRightLogicalSubstitution substitution.""" super().__init__() @@ -85,7 +85,7 @@ def parse(cls, data: Sequence[SomeSubstitutionsType]): return cls, {'left': data[0], 'right': data[1]} @property - def func(self) -> Callable[[bool, bool], bool]: + def func(self) -> Callable[[StrSomeValueType, StrSomeValueType], bool]: """Getter for the logical evaluation function.""" return self.__func