Skip to content

Commit 26c1c85

Browse files
Add type hints for panel_id and __all__ in history panel for improved clarity
1 parent 756f002 commit 26c1c85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debug_toolbar/panels/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, toolbar, get_response):
2121
# Private panel properties
2222

2323
@classproperty
24-
def panel_id(cls):
24+
def panel_id(cls) -> str:
2525
return cls.__name__
2626

2727
@property
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from debug_toolbar.panels.history.panel import HistoryPanel
22

3-
__all__ = [HistoryPanel.panel_id]
3+
__all__: list[str] = [HistoryPanel.panel_id]

0 commit comments

Comments
 (0)