Skip to content

Commit 623d204

Browse files
committed
fixup! Turn keywords into a property
1 parent 0f5478c commit 623d204

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/_pytest/python.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
from _pytest.mark.structures import get_unpacked_marks
5454
from _pytest.mark.structures import Mark
5555
from _pytest.mark.structures import normalize_mark_list
56-
from _pytest.nodes import NodeKeywords
5756
from _pytest.outcomes import fail
5857
from _pytest.outcomes import skip
5958
from _pytest.pathlib import parts
@@ -272,7 +271,7 @@ class PyobjMixin(PyobjContext):
272271

273272
# Function and attributes that the mixin needs (for type-checking only).
274273
if TYPE_CHECKING:
275-
_keywords = None # type: Optional[NodeKeywords]
274+
_keywords = None # type: Optional[nodes.NodeKeywords]
276275
_own_markers = ([], []) # type: Tuple[List[Mark], List[Mark]]
277276

278277
@property
@@ -1473,7 +1472,7 @@ def own_markers(self) -> List[Mark]:
14731472
return self._own_markers[0] + self._obj_markers + self._own_markers[1]
14741473

14751474
@property
1476-
def keywords(self) -> NodeKeywords:
1475+
def keywords(self) -> "nodes.NodeKeywords":
14771476
if self._keywords is not None:
14781477
return self._keywords
14791478

0 commit comments

Comments
 (0)