File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ def callback(
184184 )
185185 callback_map = _kwargs .pop ("callback_map" , GLOBAL_CALLBACK_MAP )
186186 callback_list = _kwargs .pop ("callback_list" , GLOBAL_CALLBACK_LIST )
187- callback_api_paths = _kwargs .pop ("callback_api_paths" , GLOBAL_API_PATHS )
188187
189188 if background :
190189 background_spec : Any = {
@@ -224,7 +223,6 @@ def callback(
224223 callback_list ,
225224 callback_map ,
226225 config_prevent_initial_callbacks ,
227- callback_api_paths ,
228226 * _args ,
229227 ** _kwargs ,
230228 background = background_spec ,
@@ -603,7 +601,6 @@ def register_callback(
603601 callback_list ,
604602 callback_map ,
605603 config_prevent_initial_callbacks ,
606- callback_api_paths ,
607604 * _args ,
608605 ** _kwargs ,
609606):
@@ -662,7 +659,7 @@ def register_callback(
662659 def wrap_func (func ):
663660 if _kwargs .get ("api_endpoint" ):
664661 api_endpoint = _kwargs .get ("api_endpoint" )
665- callback_api_paths [api_endpoint ] = func
662+ GLOBAL_API_PATHS [api_endpoint ] = func
666663
667664 if background is None :
668665 background_key = None
You can’t perform that action at this time.
0 commit comments