Skip to content

Commit aacbbc8

Browse files
committed
back out typing for obj
1 parent 8619e86 commit aacbbc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/python.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,20 +270,20 @@ class PyobjMixin(PyobjContext):
270270
_own_markers = ([], []) # type: Tuple[List[Mark], List[Mark]]
271271

272272
@property
273-
def obj(self) -> object:
273+
def obj(self):
274274
"""Underlying Python object."""
275275
obj = getattr(self, "_obj", None)
276276
if obj is None:
277277
self._obj = obj = self._getobj()
278278
return obj
279279

280280
@obj.setter
281-
def obj(self, value: object) -> None:
281+
def obj(self, value) -> None:
282282
self._obj = value
283283
self._obj_markers = None
284284
self._keywords = None
285285

286-
def _getobj(self) -> object:
286+
def _getobj(self):
287287
"""Gets the underlying Python object. May be overwritten by subclasses."""
288288
return getattr(self.parent.obj, self.name)
289289

0 commit comments

Comments
 (0)