File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def __html__(self) -> str:
4141 pass
4242
4343
44- F = t .TypeVar ( "F" , bound = t . Callable [..., t .Any ])
44+ FilterFunction = t .Callable [..., t .Any ]
4545K = t .TypeVar ("K" )
4646V = t .TypeVar ("V" )
4747
@@ -1815,7 +1815,7 @@ async def async_select_or_reject(
18151815 yield item
18161816
18171817
1818- FILTERS : t .Dict [str , F ] = {
1818+ FILTERS : t .Dict [str , FilterFunction ] = {
18191819 "abs" : abs ,
18201820 "attr" : do_attr ,
18211821 "batch" : do_batch ,
Original file line number Diff line number Diff line change 1212 from .environment import Environment
1313
1414
15+ TestFunction = t .Callable [..., t .Any ]
16+
17+
1518def test_odd (value : int ) -> bool :
1619 """Return true if the variable is odd."""
1720 return value % 2 == 1
@@ -213,7 +216,7 @@ def test_in(value: t.Any, seq: t.Container[t.Any]) -> bool:
213216 return value in seq
214217
215218
216- TESTS = {
219+ TESTS : t . Dict [ str , TestFunction ] = {
217220 "odd" : test_odd ,
218221 "even" : test_even ,
219222 "divisibleby" : test_divisibleby ,
You can’t perform that action at this time.
0 commit comments