-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Milestone
Description
Bug description
# pylint: disable=invalid-name
__import__("mypackage")
Configuration
[Imports]
deprecated-modules=mypackage
Command used
pylint -d all -e deprecated-module
Pylint output
# Empty output
Expected behavior
Deprecated module 'mypackage' (deprecated-module)
This style is used from popular auto-code snippets:
Pylint version
pylint 4.0.0-dev0
astroid 4.0.0a0
Python 3.12.11 (main, Jun 3 2025, 15:41:47) [Clang 17.0.0 (clang-1700.0.13.3)]
OS / Environment
MACOSX
Additional dependencies
Metadata
Metadata
Assignees
Labels
False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation