|
1 | 1 | import datetime |
2 | 2 | import uuid |
3 | 3 | from collections import OrderedDict |
| 4 | +from collections.abc import Callable, Generator, Iterable, Mapping, MutableMapping, Sequence |
4 | 5 | from decimal import Decimal |
5 | 6 | from enum import Enum |
6 | 7 | from json import JSONDecoder, JSONEncoder |
7 | | -from collections.abc import Callable, Generator, Iterable, Mapping, MutableMapping, Sequence |
8 | 8 | from re import Pattern |
9 | 9 | from typing import Any, Generic, NoReturn, Protocol, TypeVar |
10 | | -from _typeshed import Self |
11 | 10 |
|
| 11 | +from _typeshed import Self |
12 | 12 | from django.core.files.base import File |
13 | 13 | from django.db import models |
14 | 14 | from django.forms import ImageField as DjangoImageField # noqa: F401 |
15 | | -from typing_extensions import Final, TypeAlias |
16 | | - |
17 | 15 | from rest_framework.serializers import BaseSerializer |
18 | 16 | from rest_framework.validators import Validator |
| 17 | +from typing_extensions import Final, TypeAlias |
19 | 18 |
|
20 | 19 | class _Empty(Enum): |
21 | 20 | sentinel = 0 # noqa: Y015 |
@@ -340,6 +339,7 @@ class DecimalField(Field[Decimal, int | float | str | Decimal, str, Any]): |
340 | 339 | min_value: Decimal | int | float = ..., |
341 | 340 | localize: bool = ..., |
342 | 341 | rounding: str | None = ..., |
| 342 | + normalize_output: bool = ..., |
343 | 343 | *, |
344 | 344 | read_only: bool = ..., |
345 | 345 | write_only: bool = ..., |
|
0 commit comments