From 4f4c69eb262562a7ca36e087e907c2fb310fa31d Mon Sep 17 00:00:00 2001 From: dhood Date: Sun, 17 Jun 2018 19:46:04 -0700 Subject: [PATCH] Fix mypy error that __init__ must return None --- launch/launch/events/process/process_exited.py | 2 +- launch/launch/events/process/process_stdout.py | 2 +- launch/launch/events/process/shutdown_process.py | 2 +- launch/launch/substitutions/text_substitution.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/launch/launch/events/process/process_exited.py b/launch/launch/events/process/process_exited.py index fe57bfc04..db7228180 100644 --- a/launch/launch/events/process/process_exited.py +++ b/launch/launch/events/process/process_exited.py @@ -27,7 +27,7 @@ def __init__( *, returncode: int, **kwargs - ): + ) -> None: """ Constructor. diff --git a/launch/launch/events/process/process_stdout.py b/launch/launch/events/process/process_stdout.py index 44cd66c41..0263301a1 100644 --- a/launch/launch/events/process/process_stdout.py +++ b/launch/launch/events/process/process_stdout.py @@ -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. diff --git a/launch/launch/events/process/shutdown_process.py b/launch/launch/events/process/shutdown_process.py index 59f68976e..ed0b23534 100644 --- a/launch/launch/events/process/shutdown_process.py +++ b/launch/launch/events/process/shutdown_process.py @@ -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) diff --git a/launch/launch/substitutions/text_substitution.py b/launch/launch/substitutions/text_substitution.py index dbec2b29d..8f907d23d 100644 --- a/launch/launch/substitutions/text_substitution.py +++ b/launch/launch/substitutions/text_substitution.py @@ -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__()