Skip to content

Commit

Permalink
tracing: more compatible types for _Writer and _Processor
Browse files Browse the repository at this point in the history
This allows passing e.g. a `f.write` method which returns an `int`.
  • Loading branch information
bluetech committed Aug 26, 2023
1 parent b5fb741 commit 973fb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pluggy/_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from typing import Tuple


_Writer = Callable[[str], None]
_Processor = Callable[[Tuple[str, ...], Tuple[Any, ...]], None]
_Writer = Callable[[str], object]
_Processor = Callable[[Tuple[str, ...], Tuple[Any, ...]], object]


class TagTracer:
Expand Down

0 comments on commit 973fb56

Please sign in to comment.