File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11import sys
22
3+ from ninja .constants import NOT_SET
4+
5+ __all__ = ["asynccontextmanager" , "NOT_SET_TYPE" ]
6+
37if sys .version_info >= (3 , 7 ):
48 from contextlib import asynccontextmanager as asynccontextmanager # noqa
59else :
610 from contextlib2 import asynccontextmanager as asynccontextmanager # noqa
11+
12+ try :
13+ from ninja .constants import NOT_SET_TYPE # noqa
14+ except Exception :
15+ NOT_SET_TYPE = type (NOT_SET ) # noqa
Original file line number Diff line number Diff line change 1111from ninja .renderers import BaseRenderer
1212
1313from ninja_extra import exceptions , router
14+ from ninja_extra .compatible import NOT_SET_TYPE
1415from ninja_extra .controllers .base import APIController , ControllerBase
1516from ninja_extra .controllers .registry import ControllerRegistry
1617
17- try :
18- from ninja .constants import NOT_SET_TYPE # type:ignore
19- except Exception :
20- NOT_SET_TYPE = type (NOT_SET )
21-
2218__all__ = [
2319 "NinjaExtraAPI" ,
2420]
You can’t perform that action at this time.
0 commit comments