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

This reverts commit 930a158a6a.

Regression test from Bruno Oliveira.
This commit is contained in:
Ran Benita
2020-01-20 23:08:09 +02:00
parent ddfa41b5a7
commit fb99b5c66e
8 changed files with 32 additions and 25 deletions

View File

@@ -462,7 +462,6 @@ 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])