From 5e1926e77fb5956f3776f7a75b18e809bce56a62 Mon Sep 17 00:00:00 2001 From: Joe Young <80432516+jpy-git@users.noreply.github.com> Date: Sat, 2 Apr 2022 13:37:03 +0100 Subject: [PATCH] Add `wildcard-import` doc example (#6132) Co-authored-by: Vladyslav Krylasov vladyslav.krylasov@gmail.com --- doc/data/messages/w/wildcard-import/bad.py | 1 + doc/data/messages/w/wildcard-import/good.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 doc/data/messages/w/wildcard-import/bad.py create mode 100644 doc/data/messages/w/wildcard-import/good.py diff --git a/doc/data/messages/w/wildcard-import/bad.py b/doc/data/messages/w/wildcard-import/bad.py new file mode 100644 index 0000000000..b0d1811eaf --- /dev/null +++ b/doc/data/messages/w/wildcard-import/bad.py @@ -0,0 +1 @@ +from abc import * # [wildcard-import] diff --git a/doc/data/messages/w/wildcard-import/good.py b/doc/data/messages/w/wildcard-import/good.py new file mode 100644 index 0000000000..d098e4b1b7 --- /dev/null +++ b/doc/data/messages/w/wildcard-import/good.py @@ -0,0 +1,4 @@ +# Either import module or +# only import required objects from module. +import abc +from abc import ABC, abstractmethod