mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Enable ruff DTZ005 rule (#11327)
* Enable ruff DTZ005 rule * Fix other/gauss_easter.py * Fix * Fix web_programming/instagram_pic.py * Fix web_programming/instagram_video.py * Apply suggestions from code review * Update instagram_pic.py * datetime.now(tz=UTC).astimezone() * .astimezone() * Fix --------- Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -55,6 +55,6 @@ def gauss_easter(year: int) -> datetime:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
for year in (1994, 2000, 2010, 2021, 2023):
|
||||
tense = "will be" if year > datetime.now().year else "was"
|
||||
for year in (1994, 2000, 2010, 2021, 2023, 2032, 2100):
|
||||
tense = "will be" if year > datetime.now(tz=UTC).year else "was"
|
||||
print(f"Easter in {year} {tense} {gauss_easter(year)}")
|
||||
|
Reference in New Issue
Block a user