Skip to content

Commit f93340f

Browse files
committed
moved doc_decorator and feature NinjaAPI constructor parameter to kwargs cause of backward compartibility
1 parent c162dbd commit f93340f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ninja_extra/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from importlib import import_module
2-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Type, Union, Any
2+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type, Union
33

44
from django.core.exceptions import ImproperlyConfigured
55
from django.http import HttpRequest, HttpResponse
@@ -36,7 +36,7 @@ def __init__(
3636
renderer: Optional[BaseRenderer] = None,
3737
parser: Optional[Parser] = None,
3838
app_name: str = "ninja",
39-
**kwargs: Any
39+
**kwargs: Any,
4040
) -> None:
4141
super(NinjaExtraAPI, self).__init__(
4242
title=title,
@@ -49,7 +49,7 @@ def __init__(
4949
auth=auth,
5050
renderer=renderer,
5151
parser=parser,
52-
**kwargs
52+
**kwargs,
5353
)
5454
self.app_name = app_name
5555
self.exception_handler(exceptions.APIException)(self.api_exception_handler)

0 commit comments

Comments
 (0)