class_docstr: Proxy to a module object that avoids executing arbitrary code.
class_docstr_tok: ["Proxy","to","a","module","object","that","avoids","executing","arbitrary","code","."]
docstr: Attempt to load an attribute "statically", via :func:`ast.literal_eval`.
docstr_tok: ["Attempt","to","load","an","attribute","``","statically","''",",","via",":","func",":","`","ast.literal_eval","`","."]
code: def __getattr__(self, attr):
      """Attempt to load an attribute "statically", via :func:`ast.literal_eval`."""
      try:
          return next(
              ast.literal_eval(value)
              for target, value in self._find_assignments()
              if isinstance(target, ast.Name) and target.id == attr
          )
      except Exception as e:
          raise AttributeError(
              f"{self.name} has no attribute {attr}"
          ) from e
  
imports: import ast
  import importlib
  import os
  import pathlib
  import sys
  from glob import iglob
  from configparser import ConfigParser
  from importlib.machinery import ModuleSpec
  from itertools import chain
  from typing import TYPE_CHECKING, Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, TypeVar, Union, cast
  from pathlib import Path
  from types import ModuleType
  from distutils.errors import DistutilsOptionError
  from .._path import same_path
  from ..warnings import SetuptoolsWarning
label_desc: Use image node_id 3 for calling the StaticModule obj's underlying member method code with example usage: obj.__getattr__(attr) and returns: next