Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
Signed-off-by: Matthijs van der Burgh <[email protected]>
  • Loading branch information
MatthijsBurgh committed Apr 8, 2024
1 parent 0bdb8b8 commit 0e945fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launch/launch/substitutions/boolean_substitution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()

Expand All @@ -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

Expand Down

0 comments on commit 0e945fe

Please sign in to comment.