File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
import sys
8
8
import textwrap
9
9
from io import StringIO
10
+ from typing import Dict
11
+ from typing import List
12
+ from typing import Tuple
10
13
11
14
import pluggy
12
15
import py
@@ -1345,7 +1348,7 @@ def test_failure():
1345
1348
1346
1349
1347
1350
@pytest .fixture (scope = "session" )
1348
- def tr ():
1351
+ def tr () -> TerminalReporter :
1349
1352
config = _pytest .config ._prepareconfig ()
1350
1353
return TerminalReporter (config )
1351
1354
@@ -1480,14 +1483,19 @@ def tr():
1480
1483
),
1481
1484
],
1482
1485
)
1483
- def test_summary_stats (tr , exp_line , exp_color , stats_arg ):
1486
+ def test_summary_stats (
1487
+ tr : TerminalReporter ,
1488
+ exp_line : List [Tuple [str , Dict [str , bool ]]],
1489
+ exp_color : str ,
1490
+ stats_arg : Dict [str , List ],
1491
+ ) -> None :
1484
1492
tr .stats = stats_arg
1485
1493
1486
1494
# Fake "_is_last_item" to be True.
1487
1495
class fake_session :
1488
1496
testscollected = 0
1489
1497
1490
- tr ._session = fake_session
1498
+ tr ._session = fake_session # type: ignore[assignment] # noqa: F821
1491
1499
assert tr ._is_last_item
1492
1500
1493
1501
# Reset cache.
You can’t perform that action at this time.
0 commit comments