Skip to content

Commit

Permalink
Fix types (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasduerschmid committed Jul 26, 2021
1 parent 37d7deb commit e1bf872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rosdiscover/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit e1bf872

Please sign in to comment.