Skip to content

Commit

Permalink
Add Route.__slots__
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Feb 17, 2021
1 parent 3dfa590 commit 6162d36
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sanic_routing/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6162d36

Please sign in to comment.