File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 4141    ArrayLike ,
4242    DateTimeErrorChoices ,
4343)
44+ from  pandas .util ._decorators  import  set_module 
4445from  pandas .util ._exceptions  import  find_stack_level 
4546
4647from  pandas .core .dtypes .common  import  (
@@ -666,6 +667,7 @@ def to_datetime(
666667) ->  DatetimeIndex : ...
667668
668669
670+ @set_module ("pandas" ) 
669671def  to_datetime (
670672    arg : DatetimeScalarOrArrayConvertible  |  DictConvertible ,
671673    errors : DateTimeErrorChoices  =  "raise" ,
Original file line number Diff line number Diff line change 1515    Timedelta ,
1616    Timestamp ,
1717)
18+ from  pandas .util ._decorators  import  set_module 
1819from  pandas .util ._validators  import  check_dtype_backend 
1920
2021from  pandas .core .dtypes .cast  import  maybe_downcast_numeric 
4647    )
4748
4849
50+ @set_module ("pandas" ) 
4951def  to_numeric (
5052    arg ,
5153    errors : DateTimeErrorChoices  =  "raise" ,
Original file line number Diff line number Diff line change 2222    disallow_ambiguous_unit ,
2323    parse_timedelta_unit ,
2424)
25+ from  pandas .util ._decorators  import  set_module 
2526
2627from  pandas .core .dtypes .common  import  is_list_like 
2728from  pandas .core .dtypes .dtypes  import  ArrowDtype 
@@ -73,6 +74,7 @@ def to_timedelta(
7374) ->  TimedeltaIndex : ...
7475
7576
77+ @set_module ("pandas" ) 
7678def  to_timedelta (
7779    arg : str 
7880    |  int 
Original file line number Diff line number Diff line change @@ -453,6 +453,9 @@ def test_set_module():
453453    assert  pd .date_range .__module__  ==  "pandas" 
454454    assert  pd .bdate_range .__module__  ==  "pandas" 
455455    assert  pd .timedelta_range .__module__  ==  "pandas" 
456+     assert  pd .to_datetime .__module__  ==  "pandas" 
457+     assert  pd .to_timedelta .__module__  ==  "pandas" 
458+     assert  pd .to_numeric .__module__  ==  "pandas" 
456459    assert  pd .NamedAgg .__module__  ==  "pandas" 
457460    assert  api .typing .SeriesGroupBy .__module__  ==  "pandas.api.typing" 
458461    assert  api .typing .DataFrameGroupBy .__module__  ==  "pandas.api.typing" 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments