Skip to content

Commit ade253c

Browse files
committed
fixtures: type annotate FixtureRequest.keywords
1 parent 6c575ad commit ade253c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/_pytest/fixtures.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Iterable
1717
from typing import Iterator
1818
from typing import List
19+
from typing import MutableMapping
1920
from typing import Optional
2021
from typing import overload
2122
from typing import Sequence
@@ -525,9 +526,10 @@ def fspath(self) -> py.path.local:
525526
return self._pyfuncitem.fspath # type: ignore
526527

527528
@property
528-
def keywords(self):
529+
def keywords(self) -> MutableMapping[str, Any]:
529530
"""Keywords/markers dictionary for the underlying node."""
530-
return self.node.keywords
531+
node: nodes.Node = self.node
532+
return node.keywords
531533

532534
@property
533535
def session(self) -> "Session":

0 commit comments

Comments
 (0)