(text: str)
| 1426 | |
| 1427 | @contextlib.contextmanager |
| 1428 | def FakeStdin(text: str) -> Generator[None, None, None]: |
| 1429 | oldin = sys.stdin |
| 1430 | try: |
| 1431 | in_ = StringIO(text) |
| 1432 | sys.stdin = in_ |
| 1433 | yield |
| 1434 | finally: |
| 1435 | sys.stdin = oldin |
| 1436 | |
| 1437 | |
| 1438 | def run_codespell_stdin( |
no outgoing calls
no test coverage detected
searching dependent graphs…