(text: str)
| 274 | |
| 275 | @contextlib.contextmanager |
| 276 | def temp_source(text: str) -> Iterator[str]: |
| 277 | with tempfile.TemporaryDirectory() as temp_dir: |
| 278 | temp_path = os.path.join(temp_dir, "t.py") |
| 279 | with open(temp_path, "w") as f: |
| 280 | f.write(text) |
| 281 | yield temp_path |
no test coverage detected
searching dependent graphs…