File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 python -V
2929 pip freeze
3030 - name : ruff
31- run : ruff check
31+ run : ruff check --output-format=github
3232 - name : pytest
3333 run : py.test
3434
4949 run : make html
5050 working-directory : docs/
5151 - name : ruff
52- run : ruff check
52+ run : ruff check --output-format=github
5353 - name : mypy
5454 run : mypy python_utils setup.py
5555 - name : pyright
Original file line number Diff line number Diff line change @@ -58,4 +58,11 @@ async def async_gen():
5858 yield 3 , 4
5959 yield 5 , 6
6060
61+ async def empty_gen ():
62+ if False :
63+ yield 1 , 2
64+
6165 assert await adict (async_gen ) == {1 : 2 , 3 : 4 , 5 : 6 }
66+ assert await adict (async_gen ()) == {1 : 2 , 3 : 4 , 5 : 6 }
67+ assert await adict (empty_gen ) == {}
68+ assert await adict (empty_gen ()) == {}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ async def adict(
109109
110110 item : types .Tuple [_K , _V ]
111111 items : types .List [types .Tuple [_K , _V ]] = []
112- async for item in iterable_ :
112+ async for item in iterable_ : # pragma: no branch
113113 items .append (item )
114114
115115 return container (items )
Original file line number Diff line number Diff line change 1010
1111Usage example:
1212 >>> width, height = get_terminal_size()
13- >>> print(f"Width: {width}, Height: {height}")
1413"""
1514from __future__ import annotations
1615
You can’t perform that action at this time.
0 commit comments