| 296 | |
| 297 | @dataclasses.dataclass |
| 298 | class _StringRelationshipArg(_RelationshipArg[_T1, _T2]): |
| 299 | def _resolve_against_registry( |
| 300 | self, clsregistry_resolver: Callable[[str, bool], _class_resolver] |
| 301 | ) -> None: |
| 302 | attr_value = self.argument |
| 303 | |
| 304 | if callable(attr_value): |
| 305 | attr_value = attr_value() |
| 306 | |
| 307 | if isinstance(attr_value, attributes.QueryableAttribute): |
| 308 | attr_value = attr_value.key # type: ignore |
| 309 | |
| 310 | self.resolved = attr_value |
| 311 | |
| 312 | |
| 313 | class _RelationshipArgs(NamedTuple): |