Skip to content

Commit

Permalink
Merge pull request #1653 from emirikol/patch-1
Browse files Browse the repository at this point in the history
change Date.parse signature to match behavior
  • Loading branch information
soutaro committed Dec 6, 2023
2 parents bf4c85f + 41cd9a8 commit 20ccb5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/date/0/date.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class Date
#
# Related: Date._parse (returns a hash).
#
def self.parse: (String str, ?boolish complete, ?Integer start) -> Date
def self.parse: (?String str, ?boolish complete, ?Integer start) -> Date

# <!--
# rdoc-file=ext/date/date_core.c
Expand Down
2 changes: 2 additions & 0 deletions test/stdlib/Date_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def test_parse
Date, :parse, "2020-08-15", :true
assert_send_type "(::String str, bool complete, ::Integer start) -> ::Date",
Date, :parse, "2020-08-15", true, Date::ITALY
assert_send_type "() -> ::Date",
Date, :parse
end

def test_rfc2822
Expand Down

0 comments on commit 20ccb5a

Please sign in to comment.