Skip to content

Commit 973fb56

Browse files
committed
tracing: more compatible types for _Writer and _Processor
This allows passing e.g. a `f.write` method which returns an `int`.
1 parent b5fb741 commit 973fb56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pluggy/_tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from typing import Tuple
1010

1111

12-
_Writer = Callable[[str], None]
13-
_Processor = Callable[[Tuple[str, ...], Tuple[Any, ...]], None]
12+
_Writer = Callable[[str], object]
13+
_Processor = Callable[[Tuple[str, ...], Tuple[Any, ...]], object]
1414

1515

1616
class TagTracer:

0 commit comments

Comments
 (0)