We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e0805b commit f3e472fCopy full SHA for f3e472f
astroid/interpreter/_import/spec.py
@@ -153,7 +153,7 @@ def find_module(
153
):
154
try:
155
with warnings.catch_warnings():
156
- warnings.filterwarnings("ignore", category=UserWarning)
+ warnings.filterwarnings("ignore", category=Warning)
157
spec = importlib.util.find_spec(".".join((*processed, modname)))
158
except ValueError:
159
# `find_spec` raises a ValueError for modules that are missing their `__spec__`
0 commit comments