cleaning up

This commit is contained in:
PyryL 2022-12-12 19:47:01 +02:00
parent 148f737832
commit 59bfc7fb84
6 changed files with 4 additions and 10 deletions

View File

@ -1,7 +1,6 @@
"""Module containing class for IFC date"""
import datetime # as dt
# from datetime import date, datetime, timedelta
import datetime
from fixedcal.services.leap_days import is_leap_year,\
gregorian_leap_days_between, fixed_leap_days_between
@ -206,7 +205,7 @@ class FixedDate:
Does not modify either one of the values.
Args:
o (Union[FixedDate, timedelta]): The value that will be added.
o (Union[FixedDate, datetime.timedelta]): The value that will be added.
Raises:
ValueError: Given argument was not FixedDate nor timedelta.

View File

@ -1,4 +1,3 @@
# from datetime import datetime, timedelta
import datetime
def is_leap_year(year: int) -> bool:
@ -11,8 +10,8 @@ def gregorian_leap_days_between(date1: datetime.date, date2: datetime.date) -> i
Count includes both ends (date1 and date2 themselves).
Args:
date1 (datetime): The beginning of the count
date2 (datetime): The end of the count
date1 (datetime.date): The beginning of the count
date2 (datetime.date): The end of the count
Returns:
int: Count of the leap days.

View File

@ -1,5 +1,4 @@
import unittest
# from datetime import datetime
import datetime
from fixedcal.core.date import FixedDate

View File

@ -1,5 +1,4 @@
import unittest
# from datetime import datetime, timedelta
import datetime
from fixedcal import FixedDate

View File

@ -1,5 +1,4 @@
import unittest
# from datetime import datetime, timedelta
import datetime
from fixedcal.core.date import FixedDate

View File

@ -1,5 +1,4 @@
import unittest
# from datetime import datetime
import datetime
from fixedcal import FixedDate