(out_dir: str, module: str)
| 1642 | |
| 1643 | |
| 1644 | def module_to_path(out_dir: str, module: str) -> str: |
| 1645 | fnam = os.path.join(out_dir, f"{module.replace('.', '/')}.pyi") |
| 1646 | if not os.path.exists(fnam): |
| 1647 | alt_fnam = fnam.replace(".pyi", "/__init__.pyi") |
| 1648 | if os.path.exists(alt_fnam): |
| 1649 | return alt_fnam |
| 1650 | return fnam |
no test coverage detected
searching dependent graphs…