File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 3232 steps :
3333 - uses : actions/checkout@v2
3434 - name : Set up Python
35- uses : actions/setup-python@v1
35+ uses : actions/setup-python@v2
3636 with :
3737 python-version : 3.9
3838 - name : Install Flit
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 11import logging
22
3- request_logger = logging .getLogger ("django.request " )
3+ request_logger = logging .getLogger ("django" )
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
@@ -30,7 +31,7 @@ def __init__(
3031 docs_url : Optional [str ] = "/docs" ,
3132 urls_namespace : Optional [str ] = None ,
3233 csrf : bool = False ,
33- auth : Union [Sequence [Callable ], Callable , object ] = NOT_SET ,
34+ auth : Union [Sequence [Callable ], Callable , NOT_SET_TYPE ] = NOT_SET ,
3435 renderer : Optional [BaseRenderer ] = None ,
3536 parser : Optional [Parser ] = None ,
3637 app_name : str = "ninja" ,
You can’t perform that action at this time.
0 commit comments