Reset a fine-grained incremental target to state before semantic analysis. Args: node: node to strip
(node: MypyFile | FuncDef | OverloadedFuncDef)
| 68 | |
| 69 | |
| 70 | def strip_target(node: MypyFile | FuncDef | OverloadedFuncDef) -> None: |
| 71 | """Reset a fine-grained incremental target to state before semantic analysis. |
| 72 | |
| 73 | Args: |
| 74 | node: node to strip |
| 75 | """ |
| 76 | visitor = NodeStripVisitor() |
| 77 | if isinstance(node, MypyFile): |
| 78 | visitor.strip_file_top_level(node) |
| 79 | else: |
| 80 | node.accept(visitor) |
| 81 | |
| 82 | |
| 83 | class NodeStripVisitor(TraverserVisitor, SplittingVisitor): |
no test coverage detected
searching dependent graphs…