summaryrefslogtreecommitdiff
path: root/doc/data/messages/i/init-is-generator/bad.py
diff options
context:
space:
mode:
authorJulthep Nandakwang <julthep@nandakwang.com>2022-06-24 21:16:44 +0700
committerGitHub <noreply@github.com>2022-06-24 16:16:44 +0200
commitc3a589083568d980957b0478d37a1ac58406f21f (patch)
treee5019653117d0b70d17e637cc211934aa82b4e52 /doc/data/messages/i/init-is-generator/bad.py
parent25525859af56bc613e7922af9aea57f517d888bd (diff)
downloadpylint-git-c3a589083568d980957b0478d37a1ac58406f21f.tar.gz
Add documentation examples for `init-is-generator` (#7022)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data/messages/i/init-is-generator/bad.py')
-rw-r--r--doc/data/messages/i/init-is-generator/bad.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/data/messages/i/init-is-generator/bad.py b/doc/data/messages/i/init-is-generator/bad.py
new file mode 100644
index 000000000..37c204ab2
--- /dev/null
+++ b/doc/data/messages/i/init-is-generator/bad.py
@@ -0,0 +1,5 @@
+class Fruit:
+ def __init__(self, worms): # [init-is-generator]
+ yield from worms
+
+apple = Fruit(["Fahad", "Anisha", "Tabatha"])