Skip to content

Commit 74571ba

Browse files
committed
Add missing keywords type annotations
1 parent 456a253 commit 74571ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ def __init__(
16371637
config: Optional[Config] = None,
16381638
callspec: Optional[CallSpec2] = None,
16391639
callobj=NOTSET,
1640-
keywords=None,
1640+
keywords: Optional[Mapping[str, Any]] = None,
16411641
session: Optional[Session] = None,
16421642
fixtureinfo: Optional[FuncFixtureInfo] = None,
16431643
originalname: Optional[str] = None,

src/_pytest/reports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Iterable
88
from typing import Iterator
99
from typing import List
10+
from typing import Mapping
1011
from typing import Optional
1112
from typing import Tuple
1213
from typing import Type
@@ -254,7 +255,7 @@ def __init__(
254255
self,
255256
nodeid: str,
256257
location: Tuple[str, Optional[int], str],
257-
keywords,
258+
keywords: Mapping[str, Any],
258259
outcome: "Literal['passed', 'failed', 'skipped']",
259260
longrepr: Union[
260261
None, ExceptionInfo[BaseException], Tuple[str, int, str], str, TerminalRepr

0 commit comments

Comments
 (0)