Skip to content

Commit b19ea92

Browse files
Add unused-wildcard-import doc example (#6133)
Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 22f4d52 commit b19ea92

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from abc import * # [unused-wildcard-import]
2+
3+
4+
class Animal(ABC): ...
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Either remove the wildcard import, make use of every object from the wildcard import, or only import the required objects.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from abc import ABC
2+
3+
4+
class Animal(ABC): ...

0 commit comments

Comments
 (0)