open_memory_channel(): return a named tuple #5871
Annotations
10 errors, 1 warning, and 1 notice
src/trio/_channel.py#L158
src/trio/_channel.py:(158:12 - 158:23): Cannot determine type of "_closed" [has-type]
|
src/trio/_channel.py#L226
src/trio/_channel.py:(226:12 - 226:23): Cannot determine type of "_closed" [has-type]
|
src/trio/_channel.py#L254
src/trio/_channel.py:(254:12 - 254:23): Cannot determine type of "_closed" [has-type]
|
src/trio/_channel.py#L461
src/trio/_channel.py:461: Unused "type: ignore" comment [unused-ignore]
|
src/trio/_channel.py#L472
src/trio/_channel.py:472: Unused "type: ignore" comment [unused-ignore]
|
src/trio/_channel.py#L488
src/trio/_channel.py:488: Unused "type: ignore" comment [unused-ignore]
|
src/trio/_tests/test_highlevel_serve_listeners.py#L45
src/trio/_tests/test_highlevel_serve_listeners.py:(45:15 - 45:46): "Tuple[MemorySendChannel[StapledStream[MemorySendStream, MemoryReceiveStream]], MemoryReceiveChannel[StapledStream[MemorySendStream, MemoryReceiveStream]]]" has no attribute "send_channel" [attr-defined]
|
src/trio/_tests/test_highlevel_serve_listeners.py#L53
src/trio/_tests/test_highlevel_serve_listeners.py:(53:24 - 53:58): "Tuple[MemorySendChannel[StapledStream[MemorySendStream, MemoryReceiveStream]], MemoryReceiveChannel[StapledStream[MemorySendStream, MemoryReceiveStream]]]" has no attribute "receive_channel" [attr-defined]
|
src/trio/_tests/test_highlevel_serve_listeners.py#L55
src/trio/_tests/test_highlevel_serve_listeners.py:(55:9 - 55:21): Returning Any from function declared to return "StapledStream[MemorySendStream, MemoryReceiveStream]" [no-any-return]
|
src/trio/_tests/test_channel.py#L414
src/trio/_tests/test_channel.py:(414:1 - 416:58): Function is missing a return type annotation [no-untyped-def]
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
src/trio/_tests/test_channel.py#L414
src/trio/_tests/test_channel.py:(414:1 - 416:58): Use "-> None" if function does not return a value
|
This job failed
Loading