def METHOD_NAME(self, key: str, expected: str, got: t.Any) -> None:
    log.warning(
        f"During ErrorInfo instantiation, got unexpected type for '{key}'. "
        f"Expected '{expected}'. Got '{got}'"
    )