Skip to content

Commit 5d62c2f

Browse files
author
CI Bot
committed
fix: resolve TypeScript linting error with proper error type
Replace 'any' type with proper Error type definition including optional Node.js error properties (code, errno, syscall, path). This fixes the ESLint @typescript-eslint/no-explicit-any violation and unblocks CI.
1 parent 36cf4c9 commit 5d62c2f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎packages/adapter-python/src/utils/python-utils.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ class WhichCommandFinder implements CommandFinder {
8686
return resolved;
8787
} catch (error) {
8888
if (process.env.CI === 'true' || process.env.DEBUG_PYTHON_DISCOVERY) {
89-
const err = error as any;
89+
const err = error as Error & {
90+
code?: string;
91+
errno?: number;
92+
syscall?: string;
93+
path?: string;
94+
};
9095
console.error(`[Python Discovery] which failed for ${cmd}:`, {
9196
message: err.message,
9297
code: err.code,

0 commit comments

Comments
 (0)