Get all dependencies of a node, recursively.
(
target: MypyFile,
type_map: dict[Expression, Type],
python_version: tuple[int, int],
options: Options,
)
| 178 | |
| 179 | |
| 180 | def get_dependencies( |
| 181 | target: MypyFile, |
| 182 | type_map: dict[Expression, Type], |
| 183 | python_version: tuple[int, int], |
| 184 | options: Options, |
| 185 | ) -> dict[str, set[str]]: |
| 186 | """Get all dependencies of a node, recursively.""" |
| 187 | visitor = DependencyVisitor(type_map, python_version, target.alias_deps, options) |
| 188 | target.accept(visitor) |
| 189 | return visitor.map |
| 190 | |
| 191 | |
| 192 | def get_dependencies_of_target( |
searching dependent graphs…