method
Add a new suppressing filter or apply it if the state is entered.
Warning class to filter
Regular expression matching the warning message.
Module to filter for. Note that the module (and its file) must match exactly and cannot be a submodule. This may make it unreliable for external modules.
When added within a context, filters are only added inside the context and will be forgotten when the context is exited.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.testing.suppress_warnings.filter.html