Skip to content

Commit 30e5149

Browse files
committed
Removing F401 violations.
1 parent 2fe16eb commit 30e5149

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

debug_toolbar/management/commands/debugsqlshell.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import django
44
import sqlparse
5-
from django.core.management.commands.shell import Command # noqa: F401
5+
from django.core.management.commands.shell import Command
66
from django.db import connection
77

88
if connection.vendor == "postgresql" and django.VERSION >= (3, 0, 0):
@@ -13,6 +13,11 @@
1313
# 'debugsqlshell' is the same as the 'shell'.
1414

1515

16+
# Command is required to exist to be loaded via
17+
# django.core.managementload_command_class
18+
__all__ = ["Command", "PrintQueryWrapper"]
19+
20+
1621
class PrintQueryWrapper(base_module.CursorDebugWrapper):
1722
def execute(self, sql, params=()):
1823
start_time = time()
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from debug_toolbar.panels.history.panel import HistoryPanel # noqa: F401
1+
from debug_toolbar.panels.history.panel import HistoryPanel
2+
3+
__all__ = ["HistoryPanel"]
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from debug_toolbar.panels.sql.panel import SQLPanel # noqa: F401
1+
from debug_toolbar.panels.sql.panel import SQLPanel
2+
3+
__all__ = ["SQLPanel"]
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
from debug_toolbar.panels.templates.panel import TemplatesPanel # noqa: F401
1+
from debug_toolbar.panels.templates.panel import TemplatesPanel
2+
3+
__all__ = ["TemplatesPanel"]

0 commit comments

Comments
 (0)