From 6162d362cf9022f245602f5dfd50a2ef8a872739 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 17 Feb 2021 14:44:18 +0200 Subject: [PATCH] Add Route.__slots__ --- sanic_routing/route.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sanic_routing/route.py b/sanic_routing/route.py index ad1c7e8..b3aa8a0 100644 --- a/sanic_routing/route.py +++ b/sanic_routing/route.py @@ -18,6 +18,26 @@ def __hash__(self): class Route: + __slots__ = ( + "_params", + "_raw_path", + "ctx", + "handlers", + "labels", + "methods", + "name", + "params", + "parts", + "path", + "pattern", + "regex", + "requirements", + "router", + "static", + "strict", + "unquote", + ) + def __init__( self, router,