cleaning up
This commit is contained in:
parent
148f737832
commit
59bfc7fb84
@ -1,7 +1,6 @@
|
|||||||
"""Module containing class for IFC date"""
|
"""Module containing class for IFC date"""
|
||||||
|
|
||||||
import datetime # as dt
|
import datetime
|
||||||
# from datetime import date, datetime, timedelta
|
|
||||||
from fixedcal.services.leap_days import is_leap_year,\
|
from fixedcal.services.leap_days import is_leap_year,\
|
||||||
gregorian_leap_days_between, fixed_leap_days_between
|
gregorian_leap_days_between, fixed_leap_days_between
|
||||||
|
|
||||||
@ -206,7 +205,7 @@ class FixedDate:
|
|||||||
Does not modify either one of the values.
|
Does not modify either one of the values.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
o (Union[FixedDate, timedelta]): The value that will be added.
|
o (Union[FixedDate, datetime.timedelta]): The value that will be added.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: Given argument was not FixedDate nor timedelta.
|
ValueError: Given argument was not FixedDate nor timedelta.
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# from datetime import datetime, timedelta
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
def is_leap_year(year: int) -> bool:
|
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).
|
Count includes both ends (date1 and date2 themselves).
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
date1 (datetime): The beginning of the count
|
date1 (datetime.date): The beginning of the count
|
||||||
date2 (datetime): The end of the count
|
date2 (datetime.date): The end of the count
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
int: Count of the leap days.
|
int: Count of the leap days.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import unittest
|
import unittest
|
||||||
# from datetime import datetime
|
|
||||||
import datetime
|
import datetime
|
||||||
from fixedcal.core.date import FixedDate
|
from fixedcal.core.date import FixedDate
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import unittest
|
import unittest
|
||||||
# from datetime import datetime, timedelta
|
|
||||||
import datetime
|
import datetime
|
||||||
from fixedcal import FixedDate
|
from fixedcal import FixedDate
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import unittest
|
import unittest
|
||||||
# from datetime import datetime, timedelta
|
|
||||||
import datetime
|
import datetime
|
||||||
from fixedcal.core.date import FixedDate
|
from fixedcal.core.date import FixedDate
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import unittest
|
import unittest
|
||||||
# from datetime import datetime
|
|
||||||
import datetime
|
import datetime
|
||||||
from fixedcal import FixedDate
|
from fixedcal import FixedDate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user