Skip to content

Commit 940e6d2

Browse files
authored
Merge pull request #24 from mongkok/remove-ordereddict
Remove unneeded use of OrderedDict
2 parents 186e33e + 4b223dc commit 940e6d2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

debug_toolbar/panels/pydantic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import inspect
22
import statistics
33
import typing as t
4-
from collections import OrderedDict
54
from time import perf_counter
65

76
from fastapi import Request, Response
@@ -27,7 +26,7 @@ def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
2726
super().__init__(*args, **kwargs)
2827
self._validation_time: float = 0
2928
self._parent_ids: t.Dict[t.Any, str] = {}
30-
self._validations: t.Dict[str, t.Any] = OrderedDict()
29+
self._validations: t.Dict[str, t.Any] = {}
3130

3231
@property
3332
def nav_subtitle(self) -> str:

debug_toolbar/toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
call_next = panel.process_request
4242

4343
self.process_request = call_next
44-
self._panels = OrderedDict()
44+
self._panels = {}
4545

4646
while panels:
4747
panel = panels.pop()

0 commit comments

Comments
 (0)