mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-07 03:07:46 +08:00
Enable ruff PLR5501 rule (#11332)
* Enable ruff PLR5501 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -46,10 +46,9 @@ def solution():
|
||||
elif day > 29 and month == 2:
|
||||
month += 1
|
||||
day = day - 29
|
||||
else:
|
||||
if day > days_per_month[month - 1]:
|
||||
month += 1
|
||||
day = day - days_per_month[month - 2]
|
||||
elif day > days_per_month[month - 1]:
|
||||
month += 1
|
||||
day = day - days_per_month[month - 2]
|
||||
|
||||
if month > 12:
|
||||
year += 1
|
||||
|
Reference in New Issue
Block a user