holzschu / holzschu/a-shell

Click library partially broken

Open
#395 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.