Skip to content

Commit

Permalink
terminal: fix/remove wrong typing for currentfspath
Browse files Browse the repository at this point in the history
Can be -2, or py.path.local (not typed).
  • Loading branch information
blueyed authored and vinaycalastry committed Dec 11, 2019
1 parent d7b5431 commit bc5fc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __init__(self, config: Config, file=None) -> None:
# self.writer will be deprecated in pytest-3.4
self.writer = self._tw
self._screen_width = self._tw.fullwidth
self.currentfspath = None # type: Optional[int]
self.currentfspath = None # type: Any
self.reportchars = getreportopt(config)
self.hasmarkup = self._tw.hasmarkup
self.isatty = file.isatty()
Expand Down

0 comments on commit bc5fc43

Please sign in to comment.