Skip to content

Commit

Permalink
Merge pull request #423 from hoefling/typing/support-unsetting-writer…
Browse files Browse the repository at this point in the history
…-in-tagtracer

ensure the type hints support the writer unsetting in tagtracer
  • Loading branch information
bluetech committed Jul 20, 2023
2 parents e507275 + ad2f915 commit 3820b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pluggy/_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _processmessage(self, tags: tuple[str, ...], args: tuple[object, ...]) -> No
else:
processor(tags, args)

def setwriter(self, writer: _Writer) -> None:
def setwriter(self, writer: _Writer | None) -> None:
self._writer = writer

def setprocessor(self, tags: str | tuple[str, ...], processor: _Processor) -> None:
Expand Down

0 comments on commit 3820b49

Please sign in to comment.