From 402413c2d8e55602280389349bdb71afeb9490b9 Mon Sep 17 00:00:00 2001 From: Mark Byrne Date: Wed, 25 May 2022 16:50:24 +0200 Subject: [PATCH] Add documentation examples for `consider-using-from-import`. --- doc/data/messages/c/consider-using-from-import/bad.py | 1 + doc/data/messages/c/consider-using-from-import/good.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/data/messages/c/consider-using-from-import/bad.py create mode 100644 doc/data/messages/c/consider-using-from-import/good.py diff --git a/doc/data/messages/c/consider-using-from-import/bad.py b/doc/data/messages/c/consider-using-from-import/bad.py new file mode 100644 index 0000000000..ff2f48913f --- /dev/null +++ b/doc/data/messages/c/consider-using-from-import/bad.py @@ -0,0 +1 @@ +import os.path as path # [consider-using-from-import] diff --git a/doc/data/messages/c/consider-using-from-import/good.py b/doc/data/messages/c/consider-using-from-import/good.py new file mode 100644 index 0000000000..cfd7c6825b --- /dev/null +++ b/doc/data/messages/c/consider-using-from-import/good.py @@ -0,0 +1 @@ +from os import path