Skip to content

Commit 6d176a7

Browse files
Removed several unused type:ignore comments.
1 parent 5e11c13 commit 6d176a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/prompt_toolkit/contrib/ssh/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def data_received(self, data: str, datatype: object) -> None:
120120
self._input.send_text(data)
121121

122122

123-
class PromptToolkitSSHServer(asyncssh.SSHServer): # type: ignore
123+
class PromptToolkitSSHServer(asyncssh.SSHServer):
124124
"""
125125
Run a prompt_toolkit application over an asyncssh server.
126126

src/prompt_toolkit/layout/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def explode_text_fragments(fragments: Iterable[_T]) -> _ExplodedList[_T]:
7373

7474
result: List[_T] = []
7575

76-
for style, string, *rest in fragments: # type: ignore
77-
for c in string: # type: ignore
76+
for style, string, *rest in fragments:
77+
for c in string:
7878
result.append((style, c, *rest)) # type: ignore
7979

8080
return _ExplodedList(result)

0 commit comments

Comments
 (0)