diff --git a/launch_ros/launch_ros/actions/load_composable_nodes.py b/launch_ros/launch_ros/actions/load_composable_nodes.py index fda356a2..6ab36f7f 100644 --- a/launch_ros/launch_ros/actions/load_composable_nodes.py +++ b/launch_ros/launch_ros/actions/load_composable_nodes.py @@ -85,7 +85,7 @@ def __init__( super().__init__(**kwargs) self.__composable_node_descriptions = composable_node_descriptions self.__target_container = target_container - self.__final_target_container_name = None # type: Optional[Text] + self.__final_target_container_name: Optional[Text] = None self.__logger = launch.logging.get_logger(__name__) @classmethod diff --git a/launch_ros/launch_ros/utilities/evaluate_parameters.py b/launch_ros/launch_ros/utilities/evaluate_parameters.py index 467bf709..693c3a9b 100644 --- a/launch_ros/launch_ros/utilities/evaluate_parameters.py +++ b/launch_ros/launch_ros/utilities/evaluate_parameters.py @@ -157,7 +157,7 @@ def evaluate_parameters(context: LaunchContext, parameters: Parameters) -> Evalu :param parameters: normalized parameters :returns: values after evaluating lists of substitutions """ - output_params = [] # type: List[Union[pathlib.Path, Dict[str, EvaluatedParameterValue]]] + output_params: List[Union[pathlib.Path, Dict[str, EvaluatedParameterValue]]] = [] for param in parameters: if isinstance(param, ParameterFile): # Evaluate a list of Substitution to a file path