config: improve typing

This commit is contained in:
Ran Benita
2020-06-21 00:34:41 +03:00
parent 83891d9022
commit 4655b79985
12 changed files with 143 additions and 91 deletions

View File

@@ -213,7 +213,7 @@ class TracebackEntry:
return source.getstatement(self.lineno)
@property
def path(self):
def path(self) -> Union[py.path.local, str]:
""" path to the source code """
return self.frame.code.path