(mod: str, reason: ModuleNotFoundReason)
| 164 | |
| 165 | |
| 166 | def fail_missing(mod: str, reason: ModuleNotFoundReason) -> None: |
| 167 | if reason is ModuleNotFoundReason.NOT_FOUND: |
| 168 | clarification = "(consider using --search-path)" |
| 169 | elif reason is ModuleNotFoundReason.FOUND_WITHOUT_TYPE_HINTS: |
| 170 | clarification = "(module likely exists, but is not PEP 561 compatible)" |
| 171 | else: |
| 172 | clarification = f"(unknown reason '{reason}')" |
| 173 | raise SystemExit(f"Can't find module '{mod}' {clarification}") |
| 174 | |
| 175 | |
| 176 | @overload |
no outgoing calls
no test coverage detected
searching dependent graphs…