Skip to content

Commit

Permalink
Change 'type' to 'Any'
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob720 committed Jan 29, 2025
1 parent 0645bd9 commit fc4e899
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/aa_remove_data/remove_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def get_nano_diff(sample1: Any, sample2: Any) -> int:
"""Get the difference in nano seconds between two samples.
Args:
sample1 (type): An Archiver Appliance sample.
sample2 (type): Another Archiver Appliance sample.
sample1 (Any): An Archiver Appliance sample.
sample2 (Any): Another Archiver Appliance sample.
Returns:
int: Difference in nanoseconds.
Expand All @@ -27,12 +27,12 @@ def get_nano_diff(sample1: Any, sample2: Any) -> int:
return diff


def get_seconds_diff(sample1: type, sample2: type) -> int:
def get_seconds_diff(sample1: Any, sample2: Any) -> int:
"""Get the difference in whole seconds between two samples.
Args:
sample1 (type): An Archiver Appliance sample.
sample2 (type): Another Archiver Appliance sample.
sample1 (Any): An Archiver Appliance sample.
sample2 (Any): Another Archiver Appliance sample.
Returns:
int: Difference in seconds
Expand All @@ -48,14 +48,14 @@ def get_seconds_diff(sample1: type, sample2: type) -> int:
def apply_min_period(
samples: list,
period: float,
initial_sample: type | None = None,
initial_sample: Any | None = None,
) -> list:
"""Reduce the frequency of a list of samples. Specify the desired minimum period.
Args:
samples (list): List of samples.
period (float): Desired minimum period between adjacent samples.
initial_sample (type, optional): An initial sample to find an initial diff.
initial_sample (Any, optional): An initial sample to find an initial diff.
Returns:
list: Reduced list of samples
Expand Down

0 comments on commit fc4e899

Please sign in to comment.