Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Aug 31, 2023
1 parent 84dcfeb commit 497f9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/click/testing.py
Expand Up @@ -18,6 +18,7 @@

if t.TYPE_CHECKING:
from .core import Command
from _typeshed import ReadableBuffer


class EchoingStdin:
Expand Down Expand Up @@ -78,7 +79,7 @@ def flush(self) -> None:
super().flush()
self.copy_to.flush()

def write(self, b) -> int: # type: ignore[no-untyped-def]
def write(self, b: ReadableBuffer) -> int:
self.copy_to.write(b)
return super().write(b)

Expand Down

0 comments on commit 497f9dd

Please sign in to comment.