Slots to Middleware

This commit is contained in:
Adam Hopkins 2022-08-07 22:38:25 +03:00
parent c72cbe4326
commit 782e0881e5
No known key found for this signature in database
GPG Key ID: 9F85EE6C807303FB

View File

@ -16,6 +16,8 @@ class MiddlewareLocation(IntEnum):
class Middleware: class Middleware:
counter = count() counter = count()
__slots__ = ("func", "priority", "location", "definition")
def __init__( def __init__(
self, self,
func: MiddlewareType, func: MiddlewareType,