| 31 | |
| 32 | |
| 33 | class PreciseDiff(NamedTuple): |
| 34 | years: int |
| 35 | months: int |
| 36 | days: int |
| 37 | hours: int |
| 38 | minutes: int |
| 39 | seconds: int |
| 40 | microseconds: int |
| 41 | total_days: int |
| 42 | |
| 43 | def __repr__(self) -> str: |
| 44 | return ( |
| 45 | f"{self.years} years " |
| 46 | f"{self.months} months " |
| 47 | f"{self.days} days " |
| 48 | f"{self.hours} hours " |
| 49 | f"{self.minutes} minutes " |
| 50 | f"{self.seconds} seconds " |
| 51 | f"{self.microseconds} microseconds" |
| 52 | ) |
| 53 | |
| 54 | |
| 55 | def is_leap(year: int) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…