Skip to content

Commit

Permalink
Removed not needed enters
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliypopel committed Sep 12, 2024
1 parent e234ef8 commit 3b75167
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/django_routify/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def urls(self) -> list[path]:
def route(self, url_path: str, name: str = None):
VIEW_TYPE: Type = Callable[[HttpRequest, ...], HttpResponse]

def register(
view: VIEW_TYPE | View
) -> VIEW_TYPE:
def register(view: VIEW_TYPE | View) -> VIEW_TYPE:
nonlocal url_path, name

if self.__auto_naming and not name:
Expand Down

0 comments on commit 3b75167

Please sign in to comment.