      """
  
      def __init__(self, parent: ttk.Frame, data, ylabel: str) -> None:
          super().__init__(parent, data, ylabel)
          self._thread: Optional[LongRunningTask] = None  # Thread for LongRunningTask
          self._displayed_keys: List[str] = []
          self._add_callback()
  
      def _add_callback(self) -> None:
          """ Add the variable trace to update graph on refresh button press or save iteration. """
          get_config().tk_vars.refresh_graph.trace("w", self.refresh)  # type:ignore
 
</s> remove         self._thread: Optional[LongRunningTask] = None  # Thread for loading data in background
 </s> add         self._thread: LongRunningTask | None = None  # Thread for loading data in background </s> remove         self._sysfs_paths: List[str] = []
 </s> add         self._sysfs_paths: list[str] = [] </s> remove                  command: Optional[str] = None) -> None:
        self._trace_vars: Dict[Literal["smoothgraph", "display_iterations"],
                               Tuple[tk.BooleanVar, str]] = {}
 </s> add                  command: str | None = None) -> None:
        self._trace_vars: dict[T.Literal["smoothgraph", "display_iterations"],
                               tuple[tk.BooleanVar, str]] = {} </s> remove         self._tf_devices: List[Any] = []
 </s> add         self._tf_devices: list[T.Any] = [] </s> remove     def _collect_carry_over(self, data: Dict[int, EventData]) -> None:
 </s> add     def _collect_carry_over(self, data: dict[int, EventData]) -> None:
        self._thread: LongRunningTask | None = None  # Thread for LongRunningTask
        self._displayed_keys: list[str] = []
      """
  
      def __init__(self, parent: ttk.Frame, data, ylabel: str) -> None:
          super().__init__(parent, data, ylabel)
        self._thread: LongRunningTask | None = None  # Thread for LongRunningTask
        self._displayed_keys: list[str] = []
        self._thread: LongRunningTask | None = None  # Thread for LongRunningTask
        self._displayed_keys: list[str] = []
          self._add_callback()
  
      def _add_callback(self) -> None:
          """ Add the variable trace to update graph on refresh button press or save iteration. """
          get_config().tk_vars.refresh_graph.trace("w", self.refresh)  # type:ignore
keep keep keep keep replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
lib/gui/display_graph.py