Slots use tuples instead now.

This commit is contained in:
Rapptz
2016-10-11 00:57:41 -04:00
parent b9dafe375f
commit e4b16851bf
7 changed files with 8 additions and 8 deletions

View File

@ -35,7 +35,7 @@ class BucketType(enum.Enum):
channel = 3
class Cooldown:
__slots__ = ['rate', 'per', 'type', '_window', '_tokens', '_last']
__slots__ = ('rate', 'per', 'type', '_window', '_tokens', '_last')
def __init__(self, rate, per, type):
self.rate = int(rate)