Minimal Template for Python < 3.14 (test usage only).
| 68 | return inspect.get_annotations(obj) |
| 69 | |
| 70 | class Template: |
| 71 | """Minimal Template for Python < 3.14 (test usage only).""" |
| 72 | |
| 73 | def __init__(self, *parts: Any): |
| 74 | self._parts = parts |
| 75 | |
| 76 | @property |
| 77 | def strings(self) -> Tuple[str, ...]: |
| 78 | return tuple(p for p in self._parts if isinstance(p, str)) |
| 79 | |
| 80 | @property |
| 81 | def interpolations(self) -> Tuple[Any, ...]: |
| 82 | return tuple(p for p in self._parts if not isinstance(p, str)) |
| 83 | |
| 84 | def __iter__(self) -> Any: |
| 85 | return iter(self._parts) |
| 86 | |
| 87 | |
| 88 | class FullArgSpec(typing.NamedTuple): |
no outgoing calls