You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent return type from click.getchar() #822
It seems that click.getchar() will return bytes under python 3 / Windows, and str under any other combination of python version and platform. Is this the intended behavior or a bug?
I wanted to update the stub for click but if it's a bug and can be fixed soon, I can leave the typeshed stub unchanged.
Activity
ScottSturdivant commentedon Sep 7, 2017
The documentation states:
I've witnessed the same behavior (
bytesw/Python3 and Windows,strelsewhere) and to me, this inconsistency is a bug.ScottSturdivant commentedon Sep 7, 2017
Can anyone see a reason for this
PY2guard here?kip-13 commentedon Mar 18, 2018
The python 3 doc's is clear with this:
In python 2 doc say this:
JelleZijlstra commentedon Mar 18, 2018
Those are docs for the standard library, not for click.
kip-13 commentedon Mar 18, 2018
@JelleZijlstra I know, but if you see the code of getchar you understand why I mentioned the module
msvcrt(Windows / Python 3.x use case)sirosen commentedon Sep 18, 2018
Closed by #1108
Merge #1576
Merge #37
Update click to 7.0 (#97)