typing: py.io.TerminalWriter for tw arguments

This commit is contained in:
Daniel Hahler
2020-01-19 10:14:06 +01:00
parent 4e0dbe92dd
commit 5c445b05e7
4 changed files with 15 additions and 13 deletions

View File

@@ -857,7 +857,7 @@ raise ValueError()
from _pytest._code.code import TerminalRepr
class MyRepr(TerminalRepr):
def toterminal(self, tw) -> None:
def toterminal(self, tw: py.io.TerminalWriter) -> None:
tw.line("я")
x = str(MyRepr())