Skip to content

Commit 3e02246

Browse files
committed
Fix mypy error caused by Optional return value
1 parent 1994870 commit 3e02246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_packages/jupyter_lsp/jupyter_lsp/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
> > Copyright 2018 Palantir Technologies, Inc.
99
"""
1010
from abc import ABC, ABCMeta, abstractmethod
11-
from typing import Optional, Text
11+
from typing import Text
1212

1313
# pylint: disable=broad-except
1414
import anyio
@@ -80,7 +80,7 @@ async def read(self) -> None:
8080
"%s couldn't enqueue message: %s (%s)", self, message, e
8181
)
8282

83-
async def _read_content(self, length: int) -> Optional[bytes]:
83+
async def _read_content(self, length: int) -> bytes:
8484
"""Read the full length of the message.
8585
8686
Args:

0 commit comments

Comments
 (0)