diff --git a/doc/data/messages/u/unused-import/details.rst b/doc/data/messages/u/unused-import/details.rst new file mode 100644 index 0000000000..c4f39fa373 --- /dev/null +++ b/doc/data/messages/u/unused-import/details.rst @@ -0,0 +1 @@ +By default, this check is skipped for ``__init__.py`` files, as they often contain imports from submodules for the convenience of end users. While these imports are not used within ``__init__.py``, they serve the purpose of providing intuitive import paths for the module's important classes and constants. diff --git a/doc/data/messages/u/unused-import/related.rst b/doc/data/messages/u/unused-import/related.rst new file mode 100644 index 0000000000..fe272841a7 --- /dev/null +++ b/doc/data/messages/u/unused-import/related.rst @@ -0,0 +1 @@ +- :ref:`--init-import `