Open larsoner opened 1 week ago
Probably not just your setup -- our warn
does some magic to set the stacklevel
such that it's out of the mne
namespace. My guess is that some code is using a @contextlib.contextmanager
and while traversing the stack, contextlib
is outside the mne
namespace so our warn
stops there and emits a warning. Instead it should know contextlib
is special in this way and keep going.
... I was wondering why the log contains
next(self.gen)
:Originally posted by @cbrnr in https://github.com/mne-tools/mne-python/pull/12909#pullrequestreview-2383989923