From 7d9563c8f505485717e76df6af4cc34fd81abaa5 Mon Sep 17 00:00:00 2001 From: Jae Hyuck Sa Date: Mon, 15 Apr 2024 07:46:46 +0900 Subject: [PATCH] [3.15] Add fields.logging (#581) --- rest_framework-stubs/fields.pyi | 3 +++ scripts/stubtest/allowlist_todo.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rest_framework-stubs/fields.pyi b/rest_framework-stubs/fields.pyi index 03610e99f..8c5fcc2b8 100644 --- a/rest_framework-stubs/fields.pyi +++ b/rest_framework-stubs/fields.pyi @@ -5,6 +5,7 @@ from collections.abc import Callable, Generator, Iterable, Mapping, Sequence from decimal import Decimal from enum import Enum from json import JSONDecoder, JSONEncoder +from logging import Logger from re import Pattern from typing import Any, ClassVar, Final, Generic, NoReturn, Protocol, TypeVar @@ -16,6 +17,8 @@ from rest_framework.serializers import BaseSerializer from rest_framework.validators import Validator from typing_extensions import Self, TypeAlias +logger: Logger + class _Empty(Enum): sentinel = 0 diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 18d3929a3..2ce163de0 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -141,7 +141,6 @@ rest_framework.RemovedInDRF317Warning rest_framework.authtoken.migrations.0004_alter_tokenproxy_options rest_framework.fields.DecimalField.__init__ rest_framework.fields.Field.__class_getitem__ -rest_framework.fields.logger rest_framework.filters.search_smart_split rest_framework.generics.GenericAPIView.__class_getitem__ rest_framework.request.Request.__class_getitem__