(read: (name: string) => string | null)
| 886 | * `read` gives a file of the folder by name, or null. Exported for the tests. |
| 887 | */ |
| 888 | export function declaredPythonImportPaths(read: (name: string) => string | null): string[] { |
| 889 | const out: string[] = []; |
| 890 | for (const written of [...pytestPythonPath(read), ...pyrightExtraPaths(read)]) { |
| 891 | if (written && !out.includes(written)) out.push(written); |
| 892 | } |
| 893 | return out; |
| 894 | } |
| 895 | |
| 896 | /** |
| 897 | * The config files of the tools themselves, which {@link |
no test coverage detected