From 1a44ebed3e179226093cf063e51f0ec6d9b1a471 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Wed, 22 May 2024 15:13:40 -0400 Subject: [PATCH] Use yaml types Signed-off-by: Michael Carlstrom --- launch/launch/utilities/type_utils.py | 4 +--- launch/package.xml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/launch/launch/utilities/type_utils.py b/launch/launch/utilities/type_utils.py index cae637376..0248daa8c 100644 --- a/launch/launch/utilities/type_utils.py +++ b/launch/launch/utilities/type_utils.py @@ -26,9 +26,7 @@ from typing import Type from typing import Union -# yaml has type annotations in typeshed, but those cannot be installed via rosdep -# since there is no definition for types-PyYAML -import yaml # type: ignore +import yaml from .ensure_argument_type_impl import ensure_argument_type from .normalize_to_list_of_substitutions_impl import normalize_to_list_of_substitutions diff --git a/launch/package.xml b/launch/package.xml index b175cd1c3..3972e3ebb 100644 --- a/launch/package.xml +++ b/launch/package.xml @@ -31,6 +31,7 @@ ament_flake8 ament_pep257 ament_mypy + python3-types-pyyaml python3-pytest