Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure the type hints support the writer unsetting in tagtracer #423

Conversation

hoefling
Copy link
Member

Reason: pytest uses TagTracer.setwriter(None) when unsetting the tracer in https://github.com/pytest-dev/pytest/blob/1de0923e83e3258709559d86d142adaab65a42d8/src/_pytest/helpconfig.py#L126. This PR adjusts the typing of TagTracer.setwriter to support this case.

Signed-off-by: Oleg Hoefling <oleg.hoefling@ionos.com>
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bluetech bluetech merged commit 3820b49 into pytest-dev:main Jul 20, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants