I find it confusing that we have to import now from django.utils.timezone, but timedelta from Python's internal datetime. This btw. is a violation of the Law of Demeter <https://en.wikipedia.org/wiki/Law_of_Demeter>, hence I agree with Suayip's proposal.
– Jacob On Monday, March 20, 2023 at 10:09:02 AM UTC+1 Mariusz Felisiak wrote: I'm strongly against it. Things should be imported from source modules, not cross-imported from Django modules just because we use them. This is confusing to the users who might have the impression that `django.utils.timezone.timedelta` is more than `datetime.timedelta`, which is not True. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/4c5d6229-49d5-41b2-9d08-2a185c584952n%40googlegroups.com.