          ----------
          record: :class:`logging.LogRecord`
              The log record to check for rewriting
          """
          if record.levelno == 30 and record.funcName == "warn" and record.module == "ag_logging":
              # TF 2.3 in Conda is imported with the wrong gast(0.4 when 0.3.3 should be used). This
              # causes warnings in autograph. They don't appear to impact performance so de-elevate
              # warning to debug
              record.levelno = 10
 
</s> remove                    "probably a bug which should be fixed:\n{}".format(traceback.format_exc()))
 </s> add                    f"probably a bug which should be fixed:\n{traceback.format_exc()}") </s> remove     def _compile_display_data(self):
        """ Compile the data to be displayed. """
 </s> add     def _compile_display_data(self) -> bool:
        """ Compile the data to be displayed.

        Returns
        -------
        bool
            ``True`` if there is valid data to display, ``False`` if not
        """ </s> remove     def _check_valid_data(self):
 </s> add     def _check_valid_data(self) -> bool:
        Returns
        -------
        :class:`logging.LogRecord`
            The log rewritten or untouched record

          ----------
          record: :class:`logging.LogRecord`
              The log record to check for rewriting
        Returns
        -------
        :class:`logging.LogRecord`
            The log rewritten or untouched record

          """
          if record.levelno == 30 and record.funcName == "warn" and record.module == "ag_logging":
              # TF 2.3 in Conda is imported with the wrong gast(0.4 when 0.3.3 should be used). This
              # causes warnings in autograph. They don't appear to impact performance so de-elevate
              # warning to debug
              record.levelno = 10
keep keep add keep keep keep keep keep keep
 Bugfixes:
  - Stats graph - Handle NaNs in data
  - logger - de-elevate matplotlib font messages 
lib/logger.py