File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ Deprecated
388388* :mod: `functools `:
389389  Calling the Python implementation of :func: `functools.reduce ` with *function *
390390  or *sequence * as keyword arguments is now deprecated.
391+   (Contributed by Kirill Podoprigora in :gh: `121676 `.)
391392
392393* :mod: `os `:
393394  :term: `Soft deprecate <soft deprecated> ` :func: `os.popen ` and
Original file line number Diff line number Diff line change @@ -1136,6 +1136,9 @@ def wrapper(*args, **kwargs):
11361136
11371137reduce  =  _warn_kwargs (reduce )
11381138
1139+ # This import has been moved here due to gh-121676 
1140+ # In Python3.16 _warn_kwargs should be removed, and this 
1141+ # import should be moved right after the reduce definition 
11391142try :
11401143    from  _functools  import  reduce 
11411144except  ImportError :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments