class_docstr: This renders the template fields of object.
  
  :meta private:
class_docstr_tok: ["This","renders","the","template","fields","of","object",".",":","meta","private",":"]
docstr: Get the content of files for template_field / template_ext.
docstr_tok: ["Get","the","content","of","files","for","template_field","\/","template_ext","."]
code: def resolve_template_files(self) -> None:
      """Get the content of files for template_field / template_ext."""
      if self.template_ext:
          for field in self.template_fields:
              content = getattr(self, field, None)
              if isinstance(content, str) and content.endswith(
                  tuple(self.template_ext)
              ):
                  env = self.get_template_env()
                  try:
                      setattr(self, field, env.loader.get_source(env, content)[0])  # type: ignore
                  except Exception:
                      self.log.exception(
                          "Failed to resolve template field %r", field
                      )
              elif isinstance(content, list):
                  env = self.get_template_env()
                  for i, item in enumerate(content):
                      if isinstance(item, str) and item.endswith(
                          tuple(self.template_ext)
                      ):
                          try:
                              content[i] = env.loader.get_source(env, item)[0]  # type: ignore
                          except Exception:
                              self.log.exception(
                                  "Failed to get source %s", item
                              )
      self.prepare_template()
  
file_path: airflow/airflow/template/templater.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, Any, Collection, Iterable, Sequence
  from airflow.utils.helpers import render_template_as_native, render_template_to_string
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.mixins import ResolveMixin
  from airflow.utils.session import NEW_SESSION, provide_session
label_desc: Use image node_id 3 for calling the Templater obj's underlying member method code with example usage: obj.resolve_template_files() without return types