Skip to content

Commit

Permalink
Missing typing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jun 10, 2024
1 parent cc952bf commit 4fdd555
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/pyodide-kernel/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type Pyodide from 'pyodide';

import type { DriveFS } from '@jupyterlite/contents';

import { KernelMessage } from '@jupyterlab/services';

import type { IPyodideWorkerKernel } from './tokens';

export class PyodideRemoteKernel {
Expand Down Expand Up @@ -349,7 +351,10 @@ export class PyodideRemoteKernel {
*
* @param content The incoming message with the comm target name.
*/
async commInfo(content: any, parent: any): Promise<{ comms: any; status: 'ok' }> {
async commInfo(
content: any,
parent: any,
): Promise<KernelMessage.ICommInfoReplyMsg['content']> {
await this.setup(parent);

const res = this._kernel.comm_info(content.target_name);
Expand Down

0 comments on commit 4fdd555

Please sign in to comment.