From 447dfe41a9bd51242466e5ee3c8cc9dfff09e156 Mon Sep 17 00:00:00 2001 From: kinegratii Date: Sun, 18 Feb 2024 21:10:12 +0800 Subject: [PATCH] :sparkles: Update freq string. #56 --- docs/guides/festivals2.md | 4 ++-- tests/test_festival2_list.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/festivals2.md b/docs/guides/festivals2.md index a6fedac..951dc33 100644 --- a/docs/guides/festivals2.md +++ b/docs/guides/festivals2.md @@ -392,7 +392,7 @@ Festival.list_days_in_future(end_date=None, reverse: bool = False, count: int = Festival.list_days_in_past(end_date=None, reverse: bool = False, count: int = -1) -> List[WrappedDate] ``` -返回今后时间([today, end_date])之间(含起止日期)匹配本 Festival 的日期列表。 +返回过去时间([today, end_date])之间(含起止日期)匹配本 Festival 的日期列表。 ### get_one_day @@ -693,7 +693,7 @@ pprint.pprint(days) FestivalLibrary.monthdaycalendar(year: int, month: int, firstweekday: int = 0) ``` -返回二维列表,每一行表示一个星期。逻辑同iter_month_daytuples。 +返回二维列表,每一行表示一个星期。逻辑同`iter_month_daytuples` 。 ### to_csv diff --git a/tests/test_festival2_list.py b/tests/test_festival2_list.py index 463881c..5d46530 100644 --- a/tests/test_festival2_list.py +++ b/tests/test_festival2_list.py @@ -52,7 +52,7 @@ def test_freq_string(self): self.assertTrue(sf.is_(date(2024, 2, 1))) with self.assertRaises(ValueError): - sf2 = SolarFestival(freq='33', day=1) + SolarFestival(freq='33', day=1) class WeekFestivalTestCase(unittest.TestCase):