Skip to content

Commit

Permalink
Fix init signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Jun 17, 2018
1 parent 1c538c4 commit d3deb97
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion launch/launch/actions/execute_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(
sigkill_timeout=LaunchConfiguration('sigkill_timeout', default=5), # type: SomeSubstitutionsType
prefix=None, # type: Optional[SomeSubstitutionsType]
output=None, # type: Optional[Text]
log_cmd=False, # type: bool
log_cmd=False # type: bool
) -> None:
"""
Construct an ExecuteProcess action.
Expand Down
4 changes: 2 additions & 2 deletions launch/launch/actions/log_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ class LogInfo(Action):
@overload
def __init__(
self, *,
msg, # type: Text
msg # type: Text
) -> None:
"""Construct with just Text (unicode string)."""
...

@overload # noqa: F811
def __init__(
self, *,
msg, # type: List[Union[Text, Substitution]]
msg # type: List[Union[Text, Substitution]]
) -> None:
"""Construct with list of Text and Substitutions."""
...
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/actions/opaque_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
self, *,
function, # type: Callable
args=None, # type: Optional[Iterable[Any]]
kwargs=None, # type: Optional[Dict[Text, Any]]
kwargs=None # type: Optional[Dict[Text, Any]]
) -> None:
"""Constructor."""
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/actions/timer_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TimerAction(Action):
def __init__(
self, *,
period, # type: Union[float, SomeSubstitutionsType]
actions, # type: Iterable[LaunchDescriptionEntity]
actions # type: Iterable[LaunchDescriptionEntity]
) -> None:
"""Constructor."""
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
self,
*,
matcher, # type: Callable[[Event], bool]
entities=None, # type: Optional[SomeActionsType]
entities=None # type: Optional[SomeActionsType]
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/event_handlers/on_process_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(
target_action=None, # type: Optional['ExecuteProcess']
on_stdin=None, # type: Callable[[ProcessIO], Optional[SomeActionsType]]
on_stdout=None, # type: Callable[[ProcessIO], Optional[SomeActionsType]]
on_stderr=None, # type: Callable[[ProcessIO], Optional[SomeActionsType]]
on_stderr=None # type: Callable[[ProcessIO], Optional[SomeActionsType]]
) -> None:
"""Constructor."""
from ..actions import ExecuteProcess # noqa
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/process/process_targeted_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ProcessTargetedEvent(Event):

def __init__(
self, *,
process_matcher, # type: Callable[['ExecuteProcess'], bool]
process_matcher # type: Callable[['ExecuteProcess'], bool]
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/process/running_process_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
cmd, # type: List[Text]
cwd, # type: Optional[Text]
env, # type: Optional[Dict[Text, Text]]
pid, # type: int
pid # type: int
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/process/signal_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SignalProcess(ProcessTargetedEvent):
def __init__(
self, *,
signal_number, # type: signal_module.Signals
process_matcher, # type: Callable[['ExecuteProcess'], bool
process_matcher # type: Callable[['ExecuteProcess'], bool
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Shutdown(Event):
def __init__(
self, *,
reason='reason not given', # type: Text
due_to_sigint=False, # type: bool
due_to_sigint=False # type: bool
) -> None:
"""Constructor."""
self.__reason = reason
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/launch_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LaunchContext:

def __init__(
self, *,
argv=None, # type: Optional[Iterable[Text]]
argv=None # type: Optional[Iterable[Text]]
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/substitutions/launch_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
self,
variable_name: SomeSubstitutionsType,
*,
default=None, # type: Optional[Union[Any, Iterable[Any]]]
default=None # type: Optional[Union[Any, Iterable[Any]]]
) -> None:
"""Constructor."""
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/default_launch_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _on_process_output(
event, # type: launch.Event
*,
file_name, # type: Text
prefix_output, # type: bool
prefix_output # type: bool
):
typed_event = cast(launch.events.process.ProcessIO, event)
text = event.text.decode()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
transition=None, # type: Optional[SomeSubstitutionsType]
start_state=None, # type: Optional[SomeSubstitutionsType]
goal_state=None, # type: Optional[SomeSubstitutionsType]
matcher=None, # type: Optional[Callable[[Event], bool]]
matcher=None # type: Optional[Callable[[Event], bool]]
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/events/lifecycle/change_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(
self,
*,
lifecycle_node_matcher, # type: Callable[['LifecycleNode'], bool]
transition_id, # type: int
transition_id # type: int
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/events/lifecycle/state_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
self,
*,
action, # type: LifecycleNode
msg, # type: lifecycle_msgs.msg.TransitionEvent
msg # type: lifecycle_msgs.msg.TransitionEvent
) -> None:
"""
Constructor.
Expand Down

0 comments on commit d3deb97

Please sign in to comment.