Skip to content

Commit ce73cb1

Browse files
committed
Re-add type ignore because of old trio version support
1 parent b5233c8 commit ce73cb1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

trio_websocket/_impl.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,11 @@ def listeners(self) -> list[Endpoint | str]:
16911691
listeners.append(repr(listener))
16921692
return listeners
16931693

1694-
async def run(
1694+
# Type ignore is because type checker does not think NoReturn is
1695+
# real for Trio 0.25.1 (current version used in requirements file as
1696+
# of writing). Not a problem for newer versions however, which is
1697+
# why we have unused-ignore as well.
1698+
async def run( # type: ignore[misc,unused-ignore]
16951699
self,
16961700
*,
16971701
task_status: trio.TaskStatus[WebSocketServer] = trio.TASK_STATUS_IGNORED,

0 commit comments

Comments
 (0)