Skip to content
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

Keys can also be ints #3697

Merged
merged 3 commits into from Aug 19, 2021
Merged

Keys can also be ints #3697

merged 3 commits into from Aug 19, 2021

Conversation

AnOctopus
Copy link
Contributor

Some people use ints for keys, and it is easy enough to support, so this updates the type annotations and docs to allow it, and ensures int keys are converted to strings so we can still rely on that internally

lib/streamlit/elements/checkbox.py Outdated Show resolved Hide resolved
@AnOctopus AnOctopus merged commit b698b8f into streamlit:develop Aug 19, 2021
@AnOctopus AnOctopus deleted the key-types branch August 19, 2021 17:40
tconkling added a commit that referenced this pull request Aug 23, 2021
* develop: (33 commits)
  Up version to 0.87.0 (#3721)
  Adds static embedded apps for st.metric to docs (#3725)
  Add metric docs and fix urls
  Keys can also be ints (#3697)
  change config message
  clean up server in test
  add test endpoit created conditionally
  add test endpoit created conditionally
  increase timeout for tests
  add note that the script check is experimental
  add timeout test
  fix tests
  rename variable
  rename variable
  -run the script endpoint async; change config to expose the script check using flag;
  -run the script endpoint async; change config to expose the script check using flag;
  ensure event base file watcher is clean before running tests
  filter streamlit internal state keys
  filter streamlit internal state keys
  fix formatting
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants