Revert "Revert "Fix type errors after adding types to the py dependency""

Without changes to test_itemreport_reportinfo.

This reverts commit fb99b5c66e.

Conflicts:
	testing/test_nose.py
This commit is contained in:
Daniel Hahler
2020-01-21 12:29:22 +01:00
parent 8fa57c8384
commit ef112fd7dd
6 changed files with 22 additions and 15 deletions

View File

@@ -462,6 +462,7 @@ class Item(Node):
@cached_property
def location(self) -> Tuple[str, Optional[int], str]:
location = self.reportinfo()
assert isinstance(location[0], py.path.local), location[0]
fspath = self.session._node_location_to_relpath(location[0])
assert type(location[2]) is str
return (fspath, location[1], location[2])