Skip to content

Conversation

@tconkling
Copy link
Contributor

ReportContext now constructs its own widget_ids_this_run. This doesn't change any behavior - ReportContext was only ever passed its own copy of this object. (ReportThread is the only non-test code that constructs a ReportContext.)

(This also cleans up a few instances where tests were incorrectly constructing ReportContexts with null values for non-nullable members.)

This doesn't change any behavior - ReportContext was only ever
passed its own copy of this object.
@tconkling tconkling requested a review from a team January 27, 2021 01:52
Copy link
Collaborator

@kantuni kantuni left a comment

Choose a reason for hiding this comment

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

LGTM!

@tconkling tconkling merged commit da1b916 into streamlit:develop Jan 27, 2021
@tconkling tconkling deleted the tim/ReportContextSimplification branch January 27, 2021 16:33
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 27, 2021
* develop:
  ReportContext constructs its own widget_ids_this_run (streamlit#2669)
  Add types to report_thread.py (streamlit#2665)
  Take scrollbars into account when computing Dataframe dimensions (streamlit#2622)
  Revert "Revert "Revert "Add anchors to Markdown headers (streamlit#2513)""" (streamlit#2664)
  ♻️ Remove "_proto" from "data_frame_proto.py" (streamlit#2640)
tconkling added a commit to tconkling/streamlit that referenced this pull request Jan 27, 2021
* develop:
  ReportContext constructs its own widget_ids_this_run (streamlit#2669)
  Add types to report_thread.py (streamlit#2665)
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.

2 participants