Skip to content

Conversation

jrieke
Copy link
Collaborator

@jrieke jrieke commented Jul 7, 2023

Describe your changes

The API reference for st.audio and st.video has a visual bug, where the last part of the type descriptor for data is added to the description:

CleanShot 2023-07-07 at 18 18 39

While trying to fix this, I realized that we should probably just say "..., or file" instead of "..., or file opened with io.open()". io.open() is just a wrapper around Python's built-in open() method, and the return objects of this function are commonly described simply as "files" or "file objects", see here.

GitHub Issue Link (if applicable)

Testing Plan

Just docstring change, no test needed.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copy link
Contributor

@snehankekre snehankekre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jrieke!

@sfc-gh-dmatthews
Copy link
Collaborator

sfc-gh-dmatthews commented Jul 10, 2023

LGTM, too. No warnings parsing the docstrings.
image
All good on the docs side @lukasmasuch. Thanks!

@lukasmasuch lukasmasuch merged commit b0859d9 into develop Jul 10, 2023
tconkling added a commit to tconkling/streamlit that referenced this pull request Jul 12, 2023
* develop:
  Feature: st.toast (streamlit#6783)
  Bump semver from 5.7.1 to 5.7.2 in /frontend (streamlit#6982)
  Add host communication e2e tests  (streamlit#6806)
  Re-add homepage to package.json (streamlit#6987)
  Remove unnecessary code and Add rm commands to make clean (streamlit#6980)
  Allow setting placeholder for st.selectbox (streamlit#6913)
  Allow setting placeholder for st.multiselect (streamlit#6901)
  Also use bottom padding in embedded mode for chat input (streamlit#6979)
  Feature/st lib (streamlit#6692)
  Remove unused import (streamlit#6977)
  Release 1.24.1 (streamlit#6965)
  Update st.audio/st.video docstrings (streamlit#6964)
  Slightly simplify bug report template (streamlit#6972)
  Fix baseweb warnings by using longhand properties (streamlit#6976)
@vdonato vdonato deleted the jrieke-patch-1 branch November 1, 2023 23:57
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants