class_docstr: A caller of all registered implementations of a hook specification.
class_docstr_tok: ["A","caller","of","all","registered","implementations","of","a","hook","specification","."]
docstr: :meta private:
docstr_tok: [":","meta","private",":"]
code: def __init__(
      self,
      name: str,
      hook_execute: _HookExec,
      specmodule_or_class: _Namespace | None = None,
      spec_opts: HookspecOpts | None = None,
  ) -> None:
      """:meta private:"""
      #: Name of the hook getting called.
      self.name: Final = name
      self._hookexec: Final = hook_execute
      self._hookimpls: Final[list[HookImpl]] = []
      self._call_history: _CallHistory | None = None
      # TODO: Document, or make private.
      self.spec: HookSpec | None = None
      if specmodule_or_class is not None:
          assert spec_opts is not None
          self.set_specification(specmodule_or_class, spec_opts)
  
imports: from __future__ import annotations
  import inspect
  import sys
  import warnings
  from types import ModuleType
  from typing import AbstractSet
  from typing import Any
  from typing import Callable
  from typing import Final
  from typing import final
  from typing import Generator
  from typing import List
  from typing import Mapping
  from typing import Optional
  from typing import overload
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import TypedDict
  from typing import TypeVar
  from typing import Union
  from ._result import Result
label_desc: Use image node_id 1 to create a new HookCaller object  with example: obj = HookCaller(name, hook_execute, specmodule_or_class, spec_opts)