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 e807c6039..f606a06a7 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -142,7 +142,6 @@ rest_framework.authtoken.migrations.0004_alter_tokenproxy_options rest_framework.compat.distinct 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__