Skip to content

Commit 323e76d

Browse files
committed
fix lint errors
1 parent 5bc6bf1 commit 323e76d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/notebooks/deepnote/deepnoteActivationService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { injectable, inject } from 'inversify';
2-
import { workspace, commands, window, WorkspaceEdit, NotebookEdit, NotebookRange, l10n } from 'vscode';
2+
import { workspace, commands, window, WorkspaceEdit, NotebookEdit, NotebookRange, l10n, Uri } from 'vscode';
33
import { IExtensionSyncActivationService } from '../../platform/activation/types';
44
import { IExtensionContext } from '../../platform/common/types';
55
import { DeepnoteNotebookSerializer } from './deepnoteSerializer';
@@ -28,7 +28,7 @@ export class DeepnoteActivationService implements IExtensionSyncActivationServic
2828
);
2929
}
3030

31-
private async getDeepnoteProject(notebookUri: any, projectId?: string): Promise<DeepnoteProject | undefined> {
31+
private async getDeepnoteProject(notebookUri: Uri, projectId?: string): Promise<DeepnoteProject | undefined> {
3232
// Try cache first if we have a project ID
3333
if (projectId) {
3434
const cachedProject = this.serializer.getManager().getOriginalProject(projectId);

src/notebooks/deepnote/deepnoteDataConverter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ export class DeepnoteDataConverter {
247247

248248
// Add structured data as error properties for debugging
249249
if (output.ename) error.name = output.ename;
250-
if (output.evalue) (error as any).evalue = output.evalue;
251-
if (output.traceback) (error as any).traceback = output.traceback;
252-
if (output.error) (error as any).deepnoteError = output.error;
250+
if (output.evalue) Object.assign(error, { evalue: output.evalue });
251+
if (output.traceback) Object.assign(error, { traceback: output.traceback });
252+
if (output.error) Object.assign(error, { deepnoteError: output.error });
253253

254254
return [NotebookCellOutputItem.error(error)];
255255
}
@@ -315,7 +315,7 @@ export class DeepnoteDataConverter {
315315
// Handle JSON specifically
316316
if (mimeType === 'application/json') {
317317
try {
318-
let jsonObject: any;
318+
let jsonObject: unknown;
319319

320320
if (typeof content === 'string') {
321321
jsonObject = JSON.parse(content);

0 commit comments

Comments
 (0)