class_docstr: A loader supporting template inheritance
class_docstr_tok: ["A","loader","supporting","template","inheritance"]
code: def __init__(
      self,
      confdir: str | os.PathLike[str],
      templates_paths: Sequence[str | os.PathLike[str]],
      system_templates_paths: Sequence[str | os.PathLike[str]],
  ) -> None:
      self.loaders = []
      self.sysloaders = []
  
      for templates_path in templates_paths:
          loader = SphinxFileSystemLoader(
              path.join(confdir, templates_path)
          )
          self.loaders.append(loader)
  
      for templates_path in system_templates_paths:
          loader = SphinxFileSystemLoader(templates_path)
          self.loaders.append(loader)
          self.sysloaders.append(loader)
  
imports: from __future__ import annotations
  import os
  from functools import partial
  from os import path
  from typing import TYPE_CHECKING, Any, Callable
  from jinja2 import TemplateNotFound
  from jinja2.loaders import BaseLoader
  from jinja2.sandbox import SandboxedEnvironment
  from sphinx import package_dir
  from sphinx.jinja2glue import SphinxFileSystemLoader
  from sphinx.locale import get_translator
  from sphinx.util import rst, texescape
label_desc: Use image node_id 1 to create a new SphinxTemplateLoader object from inherited base classes: BaseLoader with example: obj = SphinxTemplateLoader(confdir, templates_paths, system_templates_paths)