Add dependencies for accessing a named attribute of a type.
(self, typ: Type, name: str)
| 896 | self.add_dependency(trigger, target) |
| 897 | |
| 898 | def add_attribute_dependency(self, typ: Type, name: str) -> None: |
| 899 | """Add dependencies for accessing a named attribute of a type.""" |
| 900 | targets = self.attribute_triggers(typ, name) |
| 901 | for target in targets: |
| 902 | self.add_dependency(target) |
| 903 | |
| 904 | def attribute_triggers(self, typ: Type, name: str) -> list[str]: |
| 905 | """Return all triggers associated with the attribute of a type.""" |
no test coverage detected