(input: Optional[NinjaPathOrPaths])
| 218 | |
| 219 | |
| 220 | def serialize_paths(input: Optional[NinjaPathOrPaths]) -> List[str]: |
| 221 | if isinstance(input, str) or isinstance(input, Path): |
| 222 | return [serialize_path(input)] if input else [] |
| 223 | elif input is not None: |
| 224 | return [serialize_path(path) for path in input if path] |
| 225 | return [] |
| 226 | |
| 227 | |
| 228 | def escape(string: str) -> str: |
no test coverage detected