diff --git a/src/rosdiscover/launch.py b/src/rosdiscover/launch.py index fd2e3b88..a1ea18b1 100644 --- a/src/rosdiscover/launch.py +++ b/src/rosdiscover/launch.py @@ -20,7 +20,7 @@ class Launch: filename: str arguments: Mapping[str, str] - def get_argv(self) -> str: + def get_argv(self) -> List[str]: return [f'{argk}:={self.arguments.get(argk)}' for argk in self.arguments.keys()] @classmethod @@ -41,7 +41,7 @@ def from_dict(cls, dict_: Mapping[str, Any]) -> 'Launch': if has_arguments and not isinstance(dict_['arguments'], dict): raise ValueError("expected 'arguments' to be a mapping") - filename: str = dict_.get('filename') + filename: Optional[Any] = dict_.get('filename') arguments: Mapping[str, str] = dict(dict_.get('arguments', {})) return Launch(filename=filename, arguments=arguments)