Skip to content

Commit

Permalink
Fix mypy error that __init__ must return None
Browse files Browse the repository at this point in the history
  • Loading branch information
dhood committed Jun 18, 2018
1 parent 05ef512 commit 4f4c69e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion launch/launch/events/process/process_exited.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
*,
returncode: int,
**kwargs
):
) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/process/process_stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ProcessStdout(ProcessIO):

name = 'launch.events.process.ProcessStdout'

def __init__(self, *, text: bytes, **kwargs):
def __init__(self, *, text: bytes, **kwargs) -> None:
"""
Constructor.
Expand Down
2 changes: 1 addition & 1 deletion launch/launch/events/process/shutdown_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ class ShutdownProcess(ProcessTargetedEvent):

name = 'launch.events.process.ShutdownProcess'

def __init__(self, *, process_matcher: Callable[['ExecuteProcess'], bool]):
def __init__(self, *, process_matcher: Callable[['ExecuteProcess'], bool]) -> None:
"""Constructor."""
super().__init__(process_matcher=process_matcher)
2 changes: 1 addition & 1 deletion launch/launch/substitutions/text_substitution.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class TextSubstitution(Substitution):
"""Substitution that wraps a single string text."""

def __init__(self, *, text: Text):
def __init__(self, *, text: Text) -> None:
"""Constructor."""
super().__init__()

Expand Down

0 comments on commit 4f4c69e

Please sign in to comment.