Skip to content

Commit aecadc2

Browse files
jacobtylerwallsPierre-Sassoulas
authored andcommitted
Add regression test for #6497 (#6498)
1 parent 2d07d47 commit aecadc2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ What's New in Pylint 2.13.9?
2020
============================
2121
Release date: TBA
2222

23+
24+
* Fix false positives for ``no-name-in-module`` and ``import-error`` for ``numpy.distutils`` and ``pydantic``.
25+
26+
Closes #6497
27+
2328
* Fix ``IndexError`` crash in ``uninferable_final_decorators`` method.
2429

2530
Relates to #6531

doc/whatsnew/2.13.rst

+6
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

+6
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)