(obj: object)
| 25 | |
| 26 | |
| 27 | def is_file_content(obj: object) -> TypeGuard[FileContent]: |
| 28 | return ( |
| 29 | isinstance(obj, bytes) or isinstance(obj, tuple) or isinstance(obj, io.IOBase) or isinstance(obj, os.PathLike) |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | def assert_is_file_content(obj: object, *, key: str | None = None) -> None: |
no outgoing calls
no test coverage detected