Skip to content

Commit 8a91f64

Browse files
sasa1977José Valim
authored andcommitted
Fix typespecs in Calendar (#5635)
Signed-off-by: José Valim <[email protected]>
1 parent 7f61b0f commit 8a91f64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/calendar.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ defmodule Calendar do
5151
@type std_offset :: integer
5252

5353
@typedoc "Any map/struct that contains the date fields"
54-
@type date :: %{calendar: calendar, year: year, month: month, day: day}
54+
@type date :: %{optional(any) => any, calendar: calendar, year: year, month: month, day: day}
5555

5656
@typedoc "Any map/struct that contains the time fields"
57-
@type time :: %{hour: hour, minute: minute, second: second, microsecond: microsecond}
57+
@type time :: %{optional(any) => any, hour: hour, minute: minute, second: second, microsecond: microsecond}
5858

5959
@typedoc "Any map/struct that contains the naive_datetime fields"
60-
@type naive_date_time :: %{calendar: calendar, year: year, month: month, day: day,
60+
@type naive_date_time :: %{optional(any) => any, calendar: calendar, year: year, month: month, day: day,
6161
hour: hour, minute: minute, second: second, microsecond: microsecond}
6262

6363
@typedoc "Any map/struct that contains the datetime fields"
64-
@type date_time :: %{calendar: calendar, year: year, month: month, day: day,
64+
@type date_time :: %{optional(any) => any, calendar: calendar, year: year, month: month, day: day,
6565
hour: hour, minute: minute, second: second, microsecond: microsecond,
6666
time_zone: time_zone, zone_abbr: zone_abbr, utc_offset: utc_offset, std_offset: std_offset}
6767

0 commit comments

Comments
 (0)