Add new filtering() context manager to LogCaptureFixture class#11625
Add new filtering() context manager to LogCaptureFixture class#11625nicoddemus merged 1 commit intopytest-dev:mainfrom
Conversation
This is correct, although we are not sure if there will be a 7.5 release or we will go directly with 8.0; regardless when the time comes we will update the docs if needed.
Ahh OK, now I read python/typeshed#5700 and understand what you mean. Not sure how to proceed, I think leaving it as you wrote is more pragmatic, as |
|
Going ahead with this for now, we can improve typing later if we need. 👍 Thanks again @jenstroeger! |
Closes #11610
Please note that I also added a
versionadded:: 7.5to the method’s docstring, though I’m not exactly sure how you guys handle the version number.Also, regarding typing of the fixture args please note the recent change python/typeshed#11018 and how with Python 3.12 the return type of the filter has changed. I am not sure how you’d like to handle that, please advise.