diff --git a/doc/data/messages/u/unused-wildcard-import/bad.py b/doc/data/messages/u/unused-wildcard-import/bad.py new file mode 100644 index 0000000000..8d48581612 --- /dev/null +++ b/doc/data/messages/u/unused-wildcard-import/bad.py @@ -0,0 +1,4 @@ +from abc import * # [unused-wildcard-import] + + +class Animal(ABC): ... diff --git a/doc/data/messages/u/unused-wildcard-import/detail.rst b/doc/data/messages/u/unused-wildcard-import/detail.rst new file mode 100644 index 0000000000..64ce4fa8ee --- /dev/null +++ b/doc/data/messages/u/unused-wildcard-import/detail.rst @@ -0,0 +1 @@ +Either remove the wildcard import, make use of every object from the wildcard import, or only import the required objects. diff --git a/doc/data/messages/u/unused-wildcard-import/good.py b/doc/data/messages/u/unused-wildcard-import/good.py new file mode 100644 index 0000000000..961af99158 --- /dev/null +++ b/doc/data/messages/u/unused-wildcard-import/good.py @@ -0,0 +1,4 @@ +from abc import ABC + + +class Animal(ABC): ...