a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

Click library partially broken

Open BandungBB opened this issue 2 years ago • 0 comments

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

BandungBB avatar Mar 17 '22 09:03 BandungBB