Require stricter object names (#2146)

This commit is contained in:
Adam Hopkins
2021-05-30 15:37:44 +03:00
committed by GitHub
parent 72a745bfd5
commit ba374139f4
7 changed files with 80 additions and 15 deletions

View File

@@ -26,10 +26,11 @@ from sanic.views import CompositionView
class RouteMixin:
name: str
def __init__(self, *args, **kwargs) -> None:
self._future_routes: Set[FutureRoute] = set()
self._future_statics: Set[FutureStatic] = set()
self.name = ""
self.strict_slashes: Optional[bool] = False
def _apply_route(self, route: FutureRoute) -> List[Route]: