Comments (2)
See v2.3.1.
from pick.
Hi @gyang2300, thanks for the report.
I can reproduce the issue with this code (most the same as you posted):
from pick import pick
options = [{'Language':'Java'}, {'Language':'JavaScript'}, {'Language':'Python'}, {'Language':'PHP'}, {'Language':'C++'}, {'Language':'Erlang'}, {'Language':'Haskell'}]
print(pick(options))
But I think this is a misuse because passing a list of dictionaries to pick is unexpected and weired. Since pick
has type hints, you can run mypy or pyright, and you will get these complaints:
a.py:5: error: Value of type variable "OPTION_T" of "pick" cannot be "Dict[str, str]" [type-var]
Found 1 error in 1 file (checked 1 source file)
Modern IDEs like pycharm and vscode will warn you.
However, this break is easy to fix and won't involve too much impact to the code base, so I'll fix it and release a new version.
from pick.
Related Issues (20)
- Long title will not wrap and disappear off screen
- Default selections of multi-select HOT 1
- Question regarding selecting an option HOT 1
- Fix for VS Code
- I copied the sample code but don't know why the error is reported HOT 1
- Doesnt work with Python 3.12 HOT 5
- [REQUEST] add NUMPAD_ENTER for picking HOT 1
- How to show options horizontal and auto wrap row , Not vertical ?
- An error is reported after using pyinstaller to package and run the operation HOT 2
- Passing a tuple with single value causes every letter is an option instead of the whole value HOT 2
- Pick no longer clears the page HOT 2
- Need full screen width option HOT 1
- input() after picking breaks the typing portion of input HOT 4
- Windows not working HOT 4
- Pick options which match the amount of terminal lines will hide the title text when picking options.
- Using pick.pick within curses.wrapper() breaks input HOT 7
- Can it support other language? HOT 9
- A way to not clear screen when using in Curses? HOT 5
- quit using `q`, how to do it now that register_custom_handler is gone? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pick.