MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Template

Class Template

lib/sqlalchemy/util/compat.py:70–85  ·  view source on GitHub ↗

Minimal Template for Python < 3.14 (test usage only).

Source from the content-addressed store, hash-verified

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
88class FullArgSpec(typing.NamedTuple):

Callers 1

_relevant_implsMethod · 0.90

Calls

no outgoing calls

Tested by 1

_relevant_implsMethod · 0.72