)L i ^ddlmZddlZddlZddlmZmZddlmZm Z m Z ddgZ d d dZ d d Z y) ) annotationsN)ContextManagerTextIO) DummyInputInput PipeInput create_inputcreate_pipe_inputctjdk(rCzz| # LLN%  && <  s3C C+*C+ctjdk(rddlm}|j Sddlm}|j S)aA Create an input pipe. This is mostly useful for unit testing. Usage:: with create_pipe_input() as input: input.send_text('inputdata') Breaking change: In prompt_toolkit 3.0.28 and earlier, this was returning the `PipeInput` directly, rather than through a context manager. r r)Win32PipeInput)PosixPipeInput)rr win32_pipercreate posix_piper)rrs rr r ;s4 ||w.$$&&.$$&&)NF)rz TextIO | Nonerboolreturnr)r%zContextManager[PipeInput]) __future__rrrtypingrrbaserrr __all__r r r#rr+s1" )..  )!X'r#