Skip to content

Commit 273a8b2

Browse files
Add regression test for #6497 (#6498)
1 parent 737f5bd commit 273a8b2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ What's New in Pylint 2.13.9?
307307
============================
308308
Release date: TBA
309309

310+
311+
* Fix false positives for ``no-name-in-module`` and ``import-error`` for ``numpy.distutils`` and ``pydantic``.
312+
313+
Closes #6497
314+
310315
* Fix ``IndexError`` crash in ``uninferable_final_decorators`` method.
311316

312317
Relates to #6531

doc/whatsnew/2.13.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,12 @@ Other Changes
644644

645645
Closes #6414
646646

647+
648+
* Fix false positives for ``no-name-in-module`` and ``import-error`` for ``numpy.distutils``
649+
and ``pydantic``.
650+
651+
Closes #6497
652+
647653
* Fix ``IndexError`` crash in ``uninferable_final_decorators`` method.
648654

649655
Relates to #6531

tests/functional/n/no/no_name_in_module.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,9 @@
7878

7979
# Check ignored-modules setting
8080
from argparse import THIS_does_not_EXIST
81+
82+
83+
# This captures the original failure in https://github.com/PyCQA/pylint/issues/6497
84+
# only if numpy is installed. We are not installing numpy on CI (for now)
85+
from numpy.distutils.misc_util import is_sequence
86+
from pydantic import BaseModel

0 commit comments

Comments
 (0)