Wrap tempfile.TemporaryDirectory to return a pathlib object.
(dir: tempfile.TemporaryDirectory)
| 148 | |
| 149 | @contextlib.contextmanager |
| 150 | def _temp_path(dir: tempfile.TemporaryDirectory): |
| 151 | """ |
| 152 | Wrap tempfile.TemporaryDirectory to return a pathlib object. |
| 153 | """ |
| 154 | with dir as result: |
| 155 | yield pathlib.Path(result) |
| 156 | |
| 157 | |
| 158 | @contextlib.contextmanager |
no outgoing calls
no test coverage detected
searching dependent graphs…