Skip to content

Commit 7d9563c

Browse files
authored
[3.15] Add fields.logging (#581)
1 parent f4521b0 commit 7d9563c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rest_framework-stubs/fields.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from collections.abc import Callable, Generator, Iterable, Mapping, Sequence
55
from decimal import Decimal
66
from enum import Enum
77
from json import JSONDecoder, JSONEncoder
8+
from logging import Logger
89
from re import Pattern
910
from typing import Any, ClassVar, Final, Generic, NoReturn, Protocol, TypeVar
1011

@@ -16,6 +17,8 @@ from rest_framework.serializers import BaseSerializer
1617
from rest_framework.validators import Validator
1718
from typing_extensions import Self, TypeAlias
1819

20+
logger: Logger
21+
1922
class _Empty(Enum):
2023
sentinel = 0
2124

scripts/stubtest/allowlist_todo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ rest_framework.RemovedInDRF317Warning
141141
rest_framework.authtoken.migrations.0004_alter_tokenproxy_options
142142
rest_framework.fields.DecimalField.__init__
143143
rest_framework.fields.Field.__class_getitem__
144-
rest_framework.fields.logger
145144
rest_framework.filters.search_smart_split
146145
rest_framework.generics.GenericAPIView.__class_getitem__
147146
rest_framework.request.Request.__class_getitem__

0 commit comments

Comments
 (0)