From f12a97aa7cbd1bb5c29c30f588b36ded3f0bfe3e Mon Sep 17 00:00:00 2001 From: SaJH Date: Tue, 21 May 2024 02:51:28 +0900 Subject: [PATCH] 5.0: Update django.db.models.functions.datetime --- django-stubs/db/models/functions/datetime.pyi | 2 ++ scripts/stubtest/allowlist_todo_django50.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/db/models/functions/datetime.pyi b/django-stubs/db/models/functions/datetime.pyi index 8e96e0a41..ea013ef5c 100644 --- a/django-stubs/db/models/functions/datetime.pyi +++ b/django-stubs/db/models/functions/datetime.pyi @@ -34,6 +34,8 @@ class ExtractSecond(Extract): ... class Now(Func): output_field: ClassVar[models.DateTimeField] + def as_oracle(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any) -> _AsSqlType: ... + class TruncBase(TimezoneMixin, Transform): kind: str tzinfo: Any diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index f0bbe3cd2..22c6f8700 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -48,8 +48,6 @@ django.db.models.fields.related.ForwardManyToOneDescriptor.get_prefetch_queryset django.db.models.fields.related.ReverseOneToOneDescriptor.get_prefetch_querysets django.db.models.fields.related_descriptors.ForwardManyToOneDescriptor.get_prefetch_querysets django.db.models.fields.related_descriptors.ReverseOneToOneDescriptor.get_prefetch_querysets -django.db.models.functions.Now.as_oracle -django.db.models.functions.datetime.Now.as_oracle django.db.models.lookups.Lookup.allowed_default django.db.models.sql.Query.build_filtered_relation_q django.db.models.sql.Query.join