(*paths: FilePath)
| 33 | |
| 34 | |
| 35 | def file_path_to_path(*paths: FilePath) -> Path: |
| 36 | # Flask supports bytes paths |
| 37 | safe_paths: list[str | os.PathLike] = [] |
| 38 | for path in paths: |
| 39 | if isinstance(path, bytes): |
| 40 | safe_paths.append(path.decode()) |
| 41 | else: |
| 42 | safe_paths.append(path) |
| 43 | return Path(*safe_paths) |
| 44 | |
| 45 | |
| 46 | def run_sync(func: Callable[..., Any]) -> Callable[..., Coroutine[None, None, Any]]: |
no test coverage detected
searching dependent graphs…