Skip to content

Commit 200431b

Browse files
committed
fixed missing NOT_SET_TYPE
1 parent 0156687 commit 200431b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ninja_extra/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
from ninja_extra.controllers.base import APIController, ControllerBase
1515
from ninja_extra.controllers.registry import ControllerRegistry
1616

17+
try:
18+
from ninja.constants import NOT_SET_TYPE # type:ignore
19+
except Exception:
20+
NOT_SET_TYPE = type(NOT_SET)
21+
1722
__all__ = [
1823
"NinjaExtraAPI",
1924
]
@@ -30,7 +35,7 @@ def __init__(
3035
docs_url: Optional[str] = "/docs",
3136
urls_namespace: Optional[str] = None,
3237
csrf: bool = False,
33-
auth: Union[Sequence[Callable], Callable, object] = NOT_SET,
38+
auth: Union[Sequence[Callable], Callable, NOT_SET_TYPE] = NOT_SET,
3439
renderer: Optional[BaseRenderer] = None,
3540
parser: Optional[Parser] = None,
3641
app_name: str = "ninja",

0 commit comments

Comments
 (0)