Add dependency from trigger to a target. If the target is not given explicitly, use the current target.
(self, trigger: str, target: str | None = None)
| 7884 | ) |
| 7885 | |
| 7886 | def add_plugin_dependency(self, trigger: str, target: str | None = None) -> None: |
| 7887 | """Add dependency from trigger to a target. |
| 7888 | |
| 7889 | If the target is not given explicitly, use the current target. |
| 7890 | """ |
| 7891 | if target is None: |
| 7892 | target = self.scope.current_target() |
| 7893 | self.cur_mod_node.plugin_deps.setdefault(trigger, set()).add(target) |
| 7894 | |
| 7895 | def add_type_alias_deps( |
| 7896 | self, aliases_used: Collection[str], target: str | None = None |
no test coverage detected