Repository navigation
Fix leap years when PREFER_DATES_FROM is set - #738
Conversation
Codecov Report
@@ Coverage Diff @@
## master #738 +/- ##
==========================================
+ Coverage 95.34% 95.39% +0.05%
==========================================
Files 304 304
Lines 2622 2651 +29
==========================================
+ Hits 2500 2529 +29
Misses 122 122
Continue to review full report at Codecov.
|
|
|
||
| from dateparser.utils import set_correct_day_from_settings, \ | ||
| get_last_day_of_month | ||
| get_last_day_of_month, get_previous_leap_year, get_next_leap_year |
There was a problem hiding this comment.
Why don't write one method by line?, this way if we need add an import, just modify a line and avoid possible erros
There was a problem hiding this comment.
I don't see the point...
If you check the PEP8 guidelines, this is the normal way of using imports:

ref: https://www.python.org/dev/peps/pep-0008/#imports
Of course, I can use tuples to do multi-line imports, but that's normally used only when there are long names to be imported or heavy nested structures.
In this case, I think that what I did is totally correct.
fixes: #520, #693