Skip to content

Commit 772dfc4

Browse files
committed
terminal: fix/remove wrong typing for currentfspath
Can be -2, or py.path.local (not typed).
1 parent 55bc084 commit 772dfc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __init__(self, config: Config, file=None) -> None:
254254
# self.writer will be deprecated in pytest-3.4
255255
self.writer = self._tw
256256
self._screen_width = self._tw.fullwidth
257-
self.currentfspath = None # type: Optional[int]
257+
self.currentfspath = None # type: Any
258258
self.reportchars = getreportopt(config)
259259
self.hasmarkup = self._tw.hasmarkup
260260
self.isatty = file.isatty()

0 commit comments

Comments
 (0)