a-shell
a-shell copied to clipboard
Click library partially broken
The click command getchar() is broken. There are only three commands within click for getting user inputs,
- click.prompt('example text, enter something') which works
- click.getchar() which throws a runtime error "generator didn't yield"
- click.pause('example text, hit any key') which throws a runtime error "generator didn't yield"
Easily reproduced error, simply type the following.
$ python $ import click $ x = click.getchar()
Traceback (most recent call last) File ....termui.py line 769, in getchar File ..._termui_impl.py line 711, in getchar File ...contextlib.py line 121, in enter raise RuntimeError("generator didn't yield") from None