(self, typ: Instance)
| 967 | return get_type_triggers(typ, self.use_logical_deps, self.seen_aliases) |
| 968 | |
| 969 | def visit_instance(self, typ: Instance) -> list[str]: |
| 970 | trigger = make_trigger(typ.type.fullname) |
| 971 | triggers = [trigger] |
| 972 | for arg in typ.args: |
| 973 | triggers.extend(self.get_type_triggers(arg)) |
| 974 | if typ.last_known_value: |
| 975 | triggers.extend(self.get_type_triggers(typ.last_known_value)) |
| 976 | if typ.extra_attrs and typ.extra_attrs.mod_name: |
| 977 | # Module as type effectively depends on all module attributes, use wildcard. |
| 978 | triggers.append(make_wildcard_trigger(typ.extra_attrs.mod_name)) |
| 979 | return triggers |
| 980 | |
| 981 | def visit_type_alias_type(self, typ: TypeAliasType) -> list[str]: |
| 982 | if typ in self.seen_aliases: |
nothing calls this directly
no test coverage detected