refactor: clean up some import and names

This commit is contained in:
2025-01-08 08:32:59 -05:00
parent 8d0bec4cf2
commit d6bc67f17a
3 changed files with 13 additions and 13 deletions

View File

@@ -1,13 +1,13 @@
import collections
import time
from collections import OrderedDict
import disnake
class LimitedSizeDict(collections.OrderedDict):
def __init__(self, *args, **kwds):
self.size_limit = kwds.pop("size_limit", 1000)
super().__init__(*args, **kwds)
class LimitedSizeDict(OrderedDict):
def __init__(self, *args, **kwargs):
self.size_limit = kwargs.pop("size_limit", 1000)
super().__init__(*args, **kwargs)
self._check_size_limit()
def __setitem__(self, key, value):