Skip to content

Conversation

@AnOctopus
Copy link
Contributor

@AnOctopus AnOctopus commented Apr 19, 2023

We added implementations to the file pretty haphazardly, so now that widgets are done I wanted to both make it alphabetical, and remove some redundancy in the implementations.

I recommend looking at each commit sequentially, since they are very focused and self-contained but the full set of changes is much harder to follow.

@AnOctopus AnOctopus added the security-assessment-completed Security assessment has been completed for PR label Apr 19, 2023
class Caption(Markdown):
def __init__(self, proto: MarkdownProto, root: ElementTree):
super().__init__(proto, root)
self.type = "caption"

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class

Assignment overwrites attribute type, which was previously defined in superclass [Element](1). Assignment overwrites attribute type, which was previously defined in superclass [Markdown](2).
class Divider(Markdown):
def __init__(self, proto: MarkdownProto, root: ElementTree):
super().__init__(proto, root)
self.type = "divider"

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class

Assignment overwrites attribute type, which was previously defined in superclass [Element](1). Assignment overwrites attribute type, which was previously defined in superclass [Markdown](2).
class Latex(Markdown):
def __init__(self, proto: MarkdownProto, root: ElementTree):
super().__init__(proto, root)
self.type = "latex"

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class

Assignment overwrites attribute type, which was previously defined in superclass [Element](1). Assignment overwrites attribute type, which was previously defined in superclass [Markdown](2).
@AnOctopus AnOctopus merged commit 8b4f630 into streamlit:develop Apr 24, 2023
@AnOctopus AnOctopus deleted the chore/element-tree-cleanup branch April 24, 2023 18:45
tconkling added a commit to tconkling/streamlit that referenced this pull request Apr 25, 2023
* develop:
  Decouple MetricsManager from AppNode (streamlit#6557)
  Fix top padding on sidebar when embed is true (streamlit#6565)
  Add support for cell and column header tooltips in the dataframe component (streamlit#6561)
  Update dataframe column properties on frontend (streamlit#6554)
  Show warning for unsafe integer cells in `st.dataframe` (streamlit#6549)
  Add icon for editable columns in `st.data_editor` (streamlit#6550)
  Unify missing values to None in the returned datastructure by `st.data_editor`.  (streamlit#6544)
  Clean up and reorganize element tree module (streamlit#6522)
  ESLint: use `--cache` flag (30x speedup!) (streamlit#6555)
  Replace `st.connection` with `st.experimental_connection` in docstring examples (streamlit#6553)
  Improve editing on touch devices for `st.data_editor` (streamlit#6548)
  Move pandas styler logic to dedicated module (streamlit#6543)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants