From 06724b762ef36111caa1ebd607a74dd4170146b2 Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Thu, 31 Jan 2019 18:43:24 +0300 Subject: [PATCH] black --- .../contrib/postgres/fields/ranges.pyi | 25 +++++-------------- django-stubs/utils/tree.pyi | 5 +++- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/django-stubs/contrib/postgres/fields/ranges.pyi b/django-stubs/contrib/postgres/fields/ranges.pyi index 64d0a9a..caf923b 100644 --- a/django-stubs/contrib/postgres/fields/ranges.pyi +++ b/django-stubs/contrib/postgres/fields/ranges.pyi @@ -5,26 +5,13 @@ from django.db import models class RangeField(models.Field): empty_strings_allowed: bool = ... base_field: Any = ... + range_type: Any = ... def get_prep_value(self, value: Any): ... def to_python(self, value: Any): ... def value_to_string(self, obj: Any): ... -class IntegerRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - -class BigIntegerRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - -class FloatRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - -class DateTimeRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - -class DateRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... +class IntegerRangeField(RangeField): ... +class BigIntegerRangeField(RangeField): ... +class FloatRangeField(RangeField): ... +class DateTimeRangeField(RangeField): ... +class DateRangeField(RangeField): ... diff --git a/django-stubs/utils/tree.pyi b/django-stubs/utils/tree.pyi index caaf8e3..50d8c74 100644 --- a/django-stubs/utils/tree.pyi +++ b/django-stubs/utils/tree.pyi @@ -7,7 +7,10 @@ class Node: connector: str = ... negated: bool = ... def __init__( - self, children: Optional[Iterable[Union[Node, NothingNode]]] = ..., connector: Optional[str] = ..., negated: bool = ... + self, + children: Optional[Iterable[Union[Node, NothingNode]]] = ..., + connector: Optional[str] = ..., + negated: bool = ..., ) -> None: ... def __deepcopy__(self, memodict: Dict[Any, Any]) -> Node: ... def __len__(self) -> int: ...