We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01b5b57 commit 1e0805bCopy full SHA for 1e0805b
astroid/interpreter/_import/spec.py
@@ -152,7 +152,9 @@ def find_module(
152
processed and processed[0] in sys.stdlib_module_names
153
):
154
try:
155
- spec = importlib.util.find_spec(".".join((*processed, modname)))
+ with warnings.catch_warnings():
156
+ warnings.filterwarnings("ignore", category=UserWarning)
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__`
160
# attributes. We don't really understand why, but this is likely caused by
0 commit comments