Skip to content

Commit

Permalink
More formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Dec 30, 2024
1 parent 8f59519 commit bb334e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions py_trees/behaviour.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def __init__(self, name: str):
) # convenience
self.status = common.Status.INVALID
self.iterator = self.tick()
self.parent: typing.Optional[
Behaviour
] = None # will get set if a behaviour is added to a composite
self.parent: typing.Optional[Behaviour] = (
None # will get set if a behaviour is added to a composite
)
self.children: typing.List[Behaviour] = [] # only set by composite behaviours
self.logger = logging.Logger(name)
self.feedback_message = "" # useful for debugging, or human readable updates, but not necessary to implement
Expand Down
12 changes: 5 additions & 7 deletions tests/test_either_or.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
##############################################################################


def create_root() -> (
typing.Tuple[
py_trees.behaviour.Behaviour,
py_trees.behaviour.Behaviour,
py_trees.behaviour.Behaviour,
]
):
def create_root() -> typing.Tuple[
py_trees.behaviour.Behaviour,
py_trees.behaviour.Behaviour,
py_trees.behaviour.Behaviour,
]:
trigger_one = py_trees.decorators.FailureIsRunning(
name="FisR", child=py_trees.behaviours.SuccessEveryN(name="Joystick 1", n=4)
)
Expand Down

0 comments on commit bb334e9

Please sign in to comment.