Skip to content

Commit

Permalink
[3.15] Add fields.logging (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored Apr 14, 2024
1 parent f4521b0 commit 7d9563c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rest_framework-stubs/fields.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 7d9563c

Please sign in to comment.