We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c575ad commit ade253cCopy full SHA for ade253c
src/_pytest/fixtures.py
@@ -16,6 +16,7 @@
16
from typing import Iterable
17
from typing import Iterator
18
from typing import List
19
+from typing import MutableMapping
20
from typing import Optional
21
from typing import overload
22
from typing import Sequence
@@ -525,9 +526,10 @@ def fspath(self) -> py.path.local:
525
526
return self._pyfuncitem.fspath # type: ignore
527
528
@property
- def keywords(self):
529
+ def keywords(self) -> MutableMapping[str, Any]:
530
"""Keywords/markers dictionary for the underlying node."""
- return self.node.keywords
531
+ node: nodes.Node = self.node
532
+ return node.keywords
533
534
535
def session(self) -> "Session":
0 commit comments