Skip to content

Commit 6162d36

Browse files
committed
Add Route.__slots__
1 parent 3dfa590 commit 6162d36

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

sanic_routing/route.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ def __hash__(self):
1818

1919

2020
class Route:
21+
__slots__ = (
22+
"_params",
23+
"_raw_path",
24+
"ctx",
25+
"handlers",
26+
"labels",
27+
"methods",
28+
"name",
29+
"params",
30+
"parts",
31+
"path",
32+
"pattern",
33+
"regex",
34+
"requirements",
35+
"router",
36+
"static",
37+
"strict",
38+
"unquote",
39+
)
40+
2141
def __init__(
2242
self,
2343
router,

0 commit comments

Comments
 (0)