Skip to content

Commit e2c66cd

Browse files
Update a bunch of methods with incorrect param types (#305)
1 parent b5a478e commit e2c66cd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/activesupport/all/activesupport.rbi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ module DateAndTime::Calculations
949949
sig { returns(T.self_type) }
950950
def at_beginning_of_quarter; end
951951

952-
sig { params(start_day: Integer).returns(T.self_type) }
952+
sig { params(start_day: Symbol).returns(T.self_type) }
953953
def at_beginning_of_week(start_day = T.unsafe(nil)); end
954954

955955
sig { returns(T.self_type) }
@@ -961,7 +961,7 @@ module DateAndTime::Calculations
961961
sig { returns(T.self_type) }
962962
def at_end_of_quarter; end
963963

964-
sig { params(start_day: Integer).returns(T.self_type) }
964+
sig { params(start_day: Symbol).returns(T.self_type) }
965965
def at_end_of_week(start_day = T.unsafe(nil)); end
966966

967967
sig { returns(T.self_type) }
@@ -976,7 +976,7 @@ module DateAndTime::Calculations
976976
sig { returns(T.self_type) }
977977
def beginning_of_quarter; end
978978

979-
sig { params(start_day: Integer).returns(T.self_type) }
979+
sig { params(start_day: Symbol).returns(T.self_type) }
980980
def beginning_of_week(start_day = T.unsafe(nil)); end
981981

982982
sig { returns(T.self_type) }
@@ -988,7 +988,7 @@ module DateAndTime::Calculations
988988
sig { params(days: Numeric).returns(T.self_type) }
989989
def days_since(days); end
990990

991-
sig { params(start_day: Integer).returns(T.self_type) }
991+
sig { params(start_day: Symbol).returns(T.self_type) }
992992
def days_to_week_start(start_day = T.unsafe(nil)); end
993993

994994
sig { returns(T.self_type) }
@@ -997,7 +997,7 @@ module DateAndTime::Calculations
997997
sig { returns(T.self_type) }
998998
def end_of_quarter; end
999999

1000-
sig { params(start_day: Integer).returns(T.self_type) }
1000+
sig { params(start_day: Symbol).returns(T.self_type) }
10011001
def end_of_week(start_day = T.unsafe(nil)); end
10021002

10031003
sig { returns(T.self_type) }
@@ -1012,7 +1012,7 @@ module DateAndTime::Calculations
10121012
sig { returns(T.self_type) }
10131013
def last_quarter; end
10141014

1015-
sig { params(start_day: Integer, same_time: T::Boolean).returns(T.self_type) }
1015+
sig { params(start_day: Symbol, same_time: T::Boolean).returns(T.self_type) }
10161016
def last_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end
10171017

10181018
sig { returns(T.self_type) }
@@ -1030,13 +1030,13 @@ module DateAndTime::Calculations
10301030
sig { params(months: Numeric).returns(T.self_type) }
10311031
def months_since(months); end
10321032

1033-
sig { params(day_of_week: Integer).returns(T.self_type) }
1033+
sig { params(day_of_week: Symbol).returns(T.self_type) }
10341034
def next_occurring(day_of_week); end
10351035

10361036
sig { returns(T.self_type) }
10371037
def next_quarter; end
10381038

1039-
sig { params(given_day_in_next_week: Integer, same_time: T::Boolean).returns(T.self_type) }
1039+
sig { params(given_day_in_next_week: Symbol, same_time: T::Boolean).returns(T.self_type) }
10401040
def next_week(given_day_in_next_week = T.unsafe(nil), same_time: T.unsafe(nil)); end
10411041

10421042
sig { returns(T.self_type) }
@@ -1051,13 +1051,13 @@ module DateAndTime::Calculations
10511051
sig { returns(T::Boolean) }
10521052
def past?; end
10531053

1054-
sig { params(day_of_week: Integer).returns(T.self_type) }
1054+
sig { params(day_of_week: Symbol).returns(T.self_type) }
10551055
def prev_occurring(day_of_week); end
10561056

10571057
sig { returns(T.self_type) }
10581058
def prev_quarter; end
10591059

1060-
sig { params(start_day: Integer, same_time: T::Boolean).returns(T.self_type) }
1060+
sig { params(start_day: Symbol, same_time: T::Boolean).returns(T.self_type) }
10611061
def prev_week(start_day = T.unsafe(nil), same_time: T.unsafe(nil)); end
10621062

10631063
sig { returns(T.self_type) }

0 commit comments

Comments
 (0)