Skip to content

Commit

Permalink
Fix Python signatures
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
  • Loading branch information
ChristopherRabotin committed Dec 7, 2022
1 parent 5ec7c80 commit 9ad8776
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1470,13 +1470,13 @@ impl Epoch {
nanos: u32,
time_scale: TimeScale,
) -> Self {
Self::from_gregorian(year, month, day, hour, minute, second, nanos, ts)
Self::from_gregorian(year, month, day, hour, minute, second, nanos, time_scale)
}

#[cfg(feature = "python")]
#[staticmethod]
fn init_from_gregorian_at_noon(year: i32, month: u8, day: u8, time_scale: TimeScale) -> Self {
Self::from_gregorian_at_noon(year, month, day, ts)
Self::from_gregorian_at_noon(year, month, day, time_scale)
}

#[cfg(feature = "python")]
Expand All @@ -1487,7 +1487,7 @@ impl Epoch {
day: u8,
time_scale: TimeScale,
) -> Self {
Self::from_gregorian_at_midnight(year, month, day, ts)
Self::from_gregorian_at_midnight(year, month, day, time_scale)
}

#[cfg(feature = "python")]
Expand Down Expand Up @@ -1520,7 +1520,7 @@ impl Epoch {
nanos: u32,
time_scale: TimeScale,
) -> Result<Self, Errors> {
Self::maybe_from_gregorian(year, month, day, hour, minute, second, nanos, ts)
Self::maybe_from_gregorian(year, month, day, hour, minute, second, nanos, time_scale)
}

#[cfg(feature = "python")]
Expand Down

0 comments on commit 9ad8776

Please sign in to comment.