Slots to Middleware
This commit is contained in:
parent
c72cbe4326
commit
782e0881e5
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user