-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump readchar to >=3.0.6 #6103
bump readchar to >=3.0.6 #6103
Conversation
the newer versions add support for arrow-keys on windows
Hi! Thanks for the contribution. We keep our minimum bounds for packages as low as we actually require to preserve maximum compatibility with other projects. Since we do not require the changes in the most recent version, we won't increase our required version. Installations of Prefect will get the latest version of |
Ok, that's an unexpected reply, but your call. Just to be sure: |
There's nothing in our minimum version requirement preventing users from receiving the latest version. However, if we bump our minimum version and another package requires an older version, we will not be compatible with it. You can see extensive discussion of this at https://iscinumpy.dev/post/bound-version-constraints/. |
yes I know that. I just don't get why requiring a version that has potential to break a feature of this project is acceptable, but requiring the version that interduces the fix is not. |
Ah, I see what you're saying. Apologies for the misunderstanding. If the |
The short of it: Windows uses two different "escape" bytes, to denote special keys that are made up of two characters. See my explanation in this issue: magmax/python-readchar#66 And see this commit that fixed it: magmax/python-readchar@a7c0645 |
as I see it: if windows support is not a priority, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining! Technically we could make this version change based on the platform but it seems simpler to just bump our requirement in the long run.
I would also say thats over-complicating things. Also |
readchar released a new version, that finally fixes support for arrow-keys on windows. As this featrue is usefull to this project I recomend requiring that version.