diff --git a/django-stubs-generated/__init__.pyi b/django-stubs-generated/__init__.pyi index b229c2c..b0aa111 100644 --- a/django-stubs-generated/__init__.pyi +++ b/django-stubs-generated/__init__.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any VERSION: Any diff --git a/django-stubs-generated/conf/__init__.pyi b/django-stubs-generated/conf/__init__.pyi deleted file mode 100644 index 0961d02..0000000 --- a/django-stubs-generated/conf/__init__.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from typing import Any, List, Optional, Union, Dict - -from django.utils.functional import LazyObject - -ENVIRONMENT_VARIABLE: str - -class LazySettings(LazyObject): - def __getattr__(self, name: str) -> Any: ... - def __setattr__(self, name: str, value: Any) -> None: ... - def __delattr__(self, name: str) -> None: ... - def configure(self, default_settings: Any = ..., **options: Any) -> Any: ... - @property - def configured(self) -> bool: ... - -class Settings: - FORCE_SCRIPT_NAME: None - INSTALLED_APPS: List[Any] - LOGGING: Dict[Any, Any] - LOGGING_CONFIG: str - SETTINGS_MODULE: Any = ... - def __init__(self, settings_module: str) -> None: ... - def is_overridden(self, setting: str) -> bool: ... - -class UserSettingsHolder: - SETTINGS_MODULE: Any = ... - default_settings: django.conf.Settings = ... - def __init__(self, default_settings: Union[Settings, UserSettingsHolder]) -> None: ... - def __getattr__(self, name: str) -> Any: ... - def __setattr__(self, name: str, value: Any) -> None: ... - def __delattr__(self, name: str) -> None: ... - def __dir__(self) -> List[str]: ... - def is_overridden(self, setting: str) -> bool: ... - -settings: Any diff --git a/django-stubs-generated/conf/urls/__init__.pyi b/django-stubs-generated/conf/urls/__init__.pyi deleted file mode 100644 index 1fd317d..0000000 --- a/django-stubs-generated/conf/urls/__init__.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from collections import OrderedDict -from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union - -from django.contrib.flatpages.sitemaps import FlatPageSitemap -from django.contrib.sitemaps import Sitemap -from django.urls import include as include -from django.urls.resolvers import URLPattern, URLResolver - -handler400: Any -handler403: Any -handler404: Any -handler500: Any - -def url( - regex: str, - view: Optional[ - Union[ - Callable, - Tuple[List[Union[URLPattern, URLResolver]], str, str], - Tuple[Union[List[URLPattern], List[URLResolver]], None, None], - ] - ], - kwargs: Optional[ - Union[ - Dict[str, Dict[str, Type[FlatPageSitemap]]], - Dict[str, Dict[str, Sitemap]], - Dict[str, OrderedDict], - Dict[str, str], - ] - ] = ..., - name: Optional[str] = ..., -) -> Union[URLPattern, URLResolver]: ... diff --git a/django-stubs-generated/conf/urls/i18n.pyi b/django-stubs-generated/conf/urls/i18n.pyi deleted file mode 100644 index 6121983..0000000 --- a/django-stubs-generated/conf/urls/i18n.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from typing import Any, List, Tuple, Union - -from django.urls.resolvers import URLPattern, URLResolver - -def i18n_patterns( - *urls: Any, prefix_default_language: bool = ... -) -> Union[List[List[Any]], List[URLPattern], List[URLResolver]]: ... -def is_language_prefix_patterns_used(urlconf: str) -> Tuple[bool, bool]: ... - -urlpatterns: Any diff --git a/django-stubs-generated/conf/urls/static.pyi b/django-stubs-generated/conf/urls/static.pyi deleted file mode 100644 index bcad0db..0000000 --- a/django-stubs-generated/conf/urls/static.pyi +++ /dev/null @@ -1,5 +0,0 @@ -from typing import Any, Callable, List - -from django.urls.resolvers import URLPattern - -def static(prefix: str, view: Callable = ..., **kwargs: Any) -> List[URLPattern]: ... diff --git a/django-stubs-generated/contrib/admin/__init__.pyi b/django-stubs-generated/contrib/admin/__init__.pyi deleted file mode 100644 index 04744c8..0000000 --- a/django-stubs-generated/contrib/admin/__init__.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from typing import Optional - -from django.contrib.admin.decorators import register as register -from django.contrib.admin.filters import AllValuesFieldListFilter as AllValuesFieldListFilter -from django.contrib.admin.filters import BooleanFieldListFilter as BooleanFieldListFilter -from django.contrib.admin.filters import ChoicesFieldListFilter as ChoicesFieldListFilter -from django.contrib.admin.filters import DateFieldListFilter as DateFieldListFilter -from django.contrib.admin.filters import FieldListFilter as FieldListFilter -from django.contrib.admin.filters import ListFilter as ListFilter -from django.contrib.admin.filters import RelatedFieldListFilter as RelatedFieldListFilter -from django.contrib.admin.filters import RelatedOnlyFieldListFilter as RelatedOnlyFieldListFilter -from django.contrib.admin.filters import SimpleListFilter as SimpleListFilter -from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME as ACTION_CHECKBOX_NAME -from django.contrib.admin.options import HORIZONTAL as HORIZONTAL -from django.contrib.admin.options import VERTICAL as VERTICAL -from django.contrib.admin.options import ModelAdmin as ModelAdmin -from django.contrib.admin.options import StackedInline as StackedInline -from django.contrib.admin.options import TabularInline as TabularInline -from django.contrib.admin.sites import AdminSite as AdminSite -from django.contrib.admin.sites import site as site - -def autodiscover() -> None: ... diff --git a/django-stubs-generated/contrib/auth/management/commands/changepassword.pyi b/django-stubs-generated/contrib/auth/management/commands/changepassword.pyi deleted file mode 100644 index 7188240..0000000 --- a/django-stubs-generated/contrib/auth/management/commands/changepassword.pyi +++ /dev/null @@ -1,15 +0,0 @@ -from typing import Any, Optional - -from django.core.management.base import BaseCommand, CommandParser - -UserModel: Any - -class Command(BaseCommand): - stderr: django.core.management.base.OutputWrapper - stdout: django.core.management.base.OutputWrapper - style: django.core.management.color.Style - help: str = ... - requires_migrations_checks: bool = ... - requires_system_checks: bool = ... - def add_arguments(self, parser: CommandParser) -> None: ... - def handle(self, *args: Any, **options: Any) -> str: ... diff --git a/django-stubs-generated/contrib/auth/management/commands/createsuperuser.pyi b/django-stubs-generated/contrib/auth/management/commands/createsuperuser.pyi deleted file mode 100644 index 987883c..0000000 --- a/django-stubs-generated/contrib/auth/management/commands/createsuperuser.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from typing import Any, Optional, Union - -from django.core.management.base import BaseCommand, CommandParser -from django.db.models.fields import Field - -class NotRunningInTTYException(Exception): ... - -class Command(BaseCommand): - stderr: django.core.management.base.OutputWrapper - stdout: django.core.management.base.OutputWrapper - style: django.core.management.color.Style - help: str = ... - requires_migrations_checks: bool = ... - stealth_options: Any = ... - UserModel: Any = ... - username_field: Any = ... - def __init__(self, *args: Any, **kwargs: Any) -> None: ... - def add_arguments(self, parser: CommandParser) -> None: ... - stdin: Any = ... - def execute(self, *args: Any, **options: Any) -> None: ... - def handle(self, *args: Any, **options: Any) -> None: ... - def get_input_data(self, field: Field, message: str, default: Optional[str] = ...) -> Optional[Union[int, str]]: ... diff --git a/django-stubs-generated/contrib/postgres/fields/__init__.pyi b/django-stubs-generated/contrib/postgres/fields/__init__.pyi deleted file mode 100644 index c677ade..0000000 --- a/django-stubs-generated/contrib/postgres/fields/__init__.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from .array import * # NOQA -from .jsonb import * # NOQA -from .ranges import * # NOQA diff --git a/django-stubs-generated/contrib/postgres/fields/array.pyi b/django-stubs-generated/contrib/postgres/fields/array.pyi deleted file mode 100644 index 17c63ec..0000000 --- a/django-stubs-generated/contrib/postgres/fields/array.pyi +++ /dev/null @@ -1,83 +0,0 @@ -from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar, Type, Generic - -from django.contrib.postgres import lookups -from django.db.models import Field, Transform -from django.db.models.fields import Field -from django.db.models.lookups import Exact, In - -from .mixins import CheckFieldDefaultMixin - -_T = TypeVar("_T", bound=Field) - -class ArrayField(CheckFieldDefaultMixin, Field, Generic[_T]): - empty_strings_allowed: bool = ... - default_error_messages: Any = ... - base_field: Any = ... - size: Any = ... - default_validators: Any = ... - from_db_value: Any = ... - def __init__(self, base_field: Field, size: None = ..., **kwargs: Any) -> None: ... - @property - def model(self): ... - @model.setter - def model(self, model: Any) -> None: ... - def check(self, **kwargs: Any) -> List[Any]: ... - def set_attributes_from_name(self, name: str) -> None: ... - @property - def description(self): ... - def db_type(self, connection: Any): ... - def get_db_prep_value(self, value: Any, connection: Any, prepared: bool = ...): ... - def deconstruct(self) -> Tuple[None, str, List[Any], Dict[str, Optional[Union[bool, Field]]]]: ... - def to_python(self, value: Any): ... - def value_to_string(self, obj: Any): ... - def get_transform(self, name: Any): ... - def validate(self, value: Any, model_instance: Any) -> None: ... - def run_validators(self, value: Any) -> None: ... - def formfield(self, **kwargs: Any): ... - def __get__(self, instance, owner) -> List[_T]: ... - -class ArrayContains(lookups.DataContains): - def as_sql(self, qn: Any, connection: Any): ... - -class ArrayContainedBy(lookups.ContainedBy): - def as_sql(self, qn: Any, connection: Any): ... - -class ArrayExact(Exact): - def as_sql(self, qn: Any, connection: Any): ... - -class ArrayOverlap(lookups.Overlap): - def as_sql(self, qn: Any, connection: Any): ... - -class ArrayLenTransform(Transform): - lookup_name: str = ... - output_field: Any = ... - def as_sql(self, compiler: Any, connection: Any): ... - -class ArrayInLookup(In): - def get_prep_lookup(self): ... - -class IndexTransform(Transform): - index: Any = ... - base_field: Any = ... - def __init__(self, index: Any, base_field: Any, *args: Any, **kwargs: Any) -> None: ... - def as_sql(self, compiler: Any, connection: Any): ... - @property - def output_field(self): ... - -class IndexTransformFactory: - index: Any = ... - base_field: Any = ... - def __init__(self, index: Any, base_field: Any) -> None: ... - def __call__(self, *args: Any, **kwargs: Any): ... - -class SliceTransform(Transform): - start: Any = ... - end: Any = ... - def __init__(self, start: Any, end: Any, *args: Any, **kwargs: Any) -> None: ... - def as_sql(self, compiler: Any, connection: Any): ... - -class SliceTransformFactory: - start: Any = ... - end: Any = ... - def __init__(self, start: Any, end: Any) -> None: ... - def __call__(self, *args: Any, **kwargs: Any): ... diff --git a/django-stubs-generated/contrib/postgres/fields/jsonb.pyi b/django-stubs-generated/contrib/postgres/fields/jsonb.pyi deleted file mode 100644 index d268f45..0000000 --- a/django-stubs-generated/contrib/postgres/fields/jsonb.pyi +++ /dev/null @@ -1,63 +0,0 @@ -from typing import Any, Dict, List, Optional, Tuple, Type, Union - -from psycopg2.extras import Json - -from django.core.serializers.json import DjangoJSONEncoder -from django.db.models import Field, Transform -from django.db.models import lookups as builtin_lookups - -from .mixins import CheckFieldDefaultMixin - -class JsonAdapter(Json): - encoder: Any = ... - def __init__(self, adapted: Any, dumps: Optional[Any] = ..., encoder: Optional[Any] = ...) -> None: ... - def dumps(self, obj: Any): ... - -class JSONField(CheckFieldDefaultMixin, Field): - empty_strings_allowed: bool = ... - description: Any = ... - default_error_messages: Any = ... - encoder: Any = ... - def __init__( - self, - verbose_name: None = ..., - name: None = ..., - encoder: Optional[Type[DjangoJSONEncoder]] = ..., - **kwargs: Any - ) -> None: ... - def db_type(self, connection: Any): ... - def deconstruct(self) -> Tuple[None, str, List[Any], Dict[str, Union[Type[DjangoJSONEncoder], bool]]]: ... - def get_transform(self, name: Any): ... - def get_prep_value(self, value: Any): ... - def validate(self, value: Any, model_instance: Any) -> None: ... - def value_to_string(self, obj: Any): ... - def formfield(self, **kwargs: Any): ... - -class KeyTransform(Transform): - operator: str = ... - nested_operator: str = ... - key_name: Any = ... - def __init__(self, key_name: Any, *args: Any, **kwargs: Any) -> None: ... - def as_sql(self, compiler: Any, connection: Any): ... - -class KeyTextTransform(KeyTransform): - operator: str = ... - nested_operator: str = ... - output_field: Any = ... - -class KeyTransformTextLookupMixin: - def __init__(self, key_transform: Any, *args: Any, **kwargs: Any) -> None: ... - -class KeyTransformIExact(KeyTransformTextLookupMixin, builtin_lookups.IExact): ... -class KeyTransformIContains(KeyTransformTextLookupMixin, builtin_lookups.IContains): ... -class KeyTransformStartsWith(KeyTransformTextLookupMixin, builtin_lookups.StartsWith): ... -class KeyTransformIStartsWith(KeyTransformTextLookupMixin, builtin_lookups.IStartsWith): ... -class KeyTransformEndsWith(KeyTransformTextLookupMixin, builtin_lookups.EndsWith): ... -class KeyTransformIEndsWith(KeyTransformTextLookupMixin, builtin_lookups.IEndsWith): ... -class KeyTransformRegex(KeyTransformTextLookupMixin, builtin_lookups.Regex): ... -class KeyTransformIRegex(KeyTransformTextLookupMixin, builtin_lookups.IRegex): ... - -class KeyTransformFactory: - key_name: Any = ... - def __init__(self, key_name: Any) -> None: ... - def __call__(self, *args: Any, **kwargs: Any): ... diff --git a/django-stubs-generated/contrib/postgres/fields/mixins.pyi b/django-stubs-generated/contrib/postgres/fields/mixins.pyi deleted file mode 100644 index 67a3629..0000000 --- a/django-stubs-generated/contrib/postgres/fields/mixins.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from typing import Any, List, Optional - -class CheckFieldDefaultMixin: - def check(self, **kwargs: Any) -> List[Any]: ... diff --git a/django-stubs-generated/contrib/postgres/fields/ranges.pyi b/django-stubs-generated/contrib/postgres/fields/ranges.pyi deleted file mode 100644 index 8d5a2e1..0000000 --- a/django-stubs-generated/contrib/postgres/fields/ranges.pyi +++ /dev/null @@ -1,97 +0,0 @@ -from typing import Any, Optional - -from django.contrib.postgres import lookups -from django.db import models - -class RangeField(models.Field): - empty_strings_allowed: bool = ... - base_field: Any = ... - def __init__(self, *args: Any, **kwargs: Any) -> None: ... - @property - def model(self): ... - @model.setter - def model(self, model: Any) -> None: ... - def get_prep_value(self, value: Any): ... - def to_python(self, value: Any): ... - def set_attributes_from_name(self, name: str) -> None: ... - def value_to_string(self, obj: Any): ... - def formfield(self, **kwargs: Any): ... - -class IntegerRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - form_field: Any = ... - def db_type(self, connection: Any): ... - -class BigIntegerRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - form_field: Any = ... - def db_type(self, connection: Any): ... - -class FloatRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - form_field: Any = ... - def db_type(self, connection: Any): ... - -class DateTimeRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - form_field: Any = ... - def db_type(self, connection: Any): ... - -class DateRangeField(RangeField): - base_field: Any = ... - range_type: Any = ... - form_field: Any = ... - def db_type(self, connection: Any): ... - -class DateTimeRangeContains(models.Lookup): - lookup_name: str = ... - rhs: Any = ... - def process_rhs(self, compiler: Any, connection: Any): ... - def as_sql(self, compiler: Any, connection: Any): ... - -class RangeContainedBy(models.Lookup): - lookup_name: str = ... - type_mapping: Any = ... - def as_sql(self, qn: Any, connection: Any): ... - def get_prep_lookup(self): ... - -class FullyLessThan(lookups.PostgresSimpleLookup): - lookup_name: str = ... - operator: str = ... - -class FullGreaterThan(lookups.PostgresSimpleLookup): - lookup_name: str = ... - operator: str = ... - -class NotLessThan(lookups.PostgresSimpleLookup): - lookup_name: str = ... - operator: str = ... - -class NotGreaterThan(lookups.PostgresSimpleLookup): - lookup_name: str = ... - operator: str = ... - -class AdjacentToLookup(lookups.PostgresSimpleLookup): - lookup_name: str = ... - operator: str = ... - -class RangeStartsWith(models.Transform): - lookup_name: str = ... - function: str = ... - @property - def output_field(self): ... - -class RangeEndsWith(models.Transform): - lookup_name: str = ... - function: str = ... - @property - def output_field(self): ... - -class IsEmpty(models.Transform): - lookup_name: str = ... - function: str = ... - output_field: Any = ... diff --git a/django-stubs-generated/contrib/postgres/operations.pyi b/django-stubs-generated/contrib/postgres/operations.pyi deleted file mode 100644 index 6fb7422..0000000 --- a/django-stubs-generated/contrib/postgres/operations.pyi +++ /dev/null @@ -1,44 +0,0 @@ -from typing import Any, Optional - -from django.db.backends.sqlite3.schema import DatabaseSchemaEditor -from django.db.migrations.operations.base import Operation -from django.db.migrations.state import ProjectState - -class CreateExtension(Operation): - reversible: bool = ... - name: Any = ... - def __init__(self, name: str) -> None: ... - def state_forwards(self, app_label: str, state: ProjectState) -> None: ... - def database_forwards( - self, app_label: str, schema_editor: DatabaseSchemaEditor, from_state: ProjectState, to_state: ProjectState - ) -> None: ... - def database_backwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ... - def describe(self): ... - -class BtreeGinExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class BtreeGistExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class CITextExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class CryptoExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class HStoreExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class TrigramExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... - -class UnaccentExtension(CreateExtension): - name: str = ... - def __init__(self) -> None: ... diff --git a/django-stubs-generated/contrib/sitemaps/management/commands/ping_google.pyi b/django-stubs-generated/contrib/sitemaps/management/commands/ping_google.pyi deleted file mode 100644 index 96acf51..0000000 --- a/django-stubs-generated/contrib/sitemaps/management/commands/ping_google.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from typing import Any, Optional - -from django.core.management.base import BaseCommand, CommandParser - -class Command(BaseCommand): - stderr: django.core.management.base.OutputWrapper - stdout: django.core.management.base.OutputWrapper - style: django.core.management.color.Style - help: str = ... - def add_arguments(self, parser: CommandParser) -> None: ... - def handle(self, *args: Any, **options: Any) -> None: ... diff --git a/django-stubs-generated/forms/renderers.pyi b/django-stubs-generated/forms/renderers.pyi deleted file mode 100644 index 0321b20..0000000 --- a/django-stubs-generated/forms/renderers.pyi +++ /dev/null @@ -1,82 +0,0 @@ -from datetime import time -from typing import Any, Dict, List, Optional, Tuple, Union - -from django.template.backends.base import BaseEngine -from django.template.backends.django import Template -from django.template.backends.jinja2 import Template - -ROOT: Any - -def get_default_renderer() -> DjangoTemplates: ... - -class BaseRenderer: - def get_template(self, template_name: str) -> Any: ... - def render( - self, - template_name: str, - context: Dict[ - str, - Union[ - Dict[ - str, - Optional[ - Union[Dict[str, bool], List[Dict[str, Optional[Union[Dict[str, str], bool, str]]]], bool, str] - ], - ], - Dict[ - str, - Union[ - Dict[str, Union[bool, str]], - List[ - Dict[ - str, - Union[ - Dict[str, Union[bool, str]], - List[Tuple[None, List[Dict[str, Union[Dict[str, bool], bool, str]]], int]], - List[str], - bool, - str, - ], - ] - ], - List[str], - bool, - str, - ], - ], - Dict[ - str, - Union[ - Dict[str, Union[int, str]], - List[ - Tuple[ - Optional[str], List[Dict[str, Union[Dict[str, Union[bool, str]], time, int, str]]], int - ] - ], - List[str], - int, - str, - ], - ], - Dict[ - str, Union[Dict[str, str], List[Dict[str, Union[Dict[str, str], bool, str]]], List[int], bool, str] - ], - ], - ], - request: None = ..., - ) -> str: ... - -class EngineMixin: - def get_template(self, template_name: str) -> Union[Template, Template]: ... - def engine(self) -> BaseEngine: ... - -class DjangoTemplates(EngineMixin, BaseRenderer): - engine: django.template.backends.django.DjangoTemplates - backend: Any = ... - -class Jinja2(EngineMixin, BaseRenderer): - engine: django.template.backends.jinja2.Jinja2 - backend: Any = ... - -class TemplatesSetting(BaseRenderer): - def get_template(self, template_name: str) -> Template: ... diff --git a/django-stubs-generated/shortcuts.pyi b/django-stubs-generated/shortcuts.pyi deleted file mode 100644 index 5fbfc26..0000000 --- a/django-stubs-generated/shortcuts.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from typing import Any, Callable, Dict, List, Optional, Type, Union - -from django.db.models.base import Model -from django.db.models.manager import Manager -from django.db.models.query import QuerySet -from django.http import HttpRequest -from django.http.response import HttpResponse, HttpResponseRedirect - -def render_to_response( - template_name: Union[List[str], str], - context: Optional[Dict[str, str]] = ..., - content_type: Optional[str] = ..., - status: Optional[int] = ..., - using: Optional[str] = ..., -) -> HttpResponse: ... -def render( - request: HttpRequest, - template_name: Union[List[str], str], - context: Optional[Dict[str, bool]] = ..., - content_type: Optional[str] = ..., - status: Optional[int] = ..., - using: Optional[str] = ..., -) -> HttpResponse: ... -def redirect(to: Union[Callable, str], *args: Any, permanent: bool = ..., **kwargs: Any) -> HttpResponseRedirect: ... -def get_object_or_404(klass: Union[Type[Model], Manager, QuerySet, str], *args: Any, **kwargs: Any) -> Model: ... -def get_list_or_404(klass: Union[List[Type[Model]], Manager, QuerySet], *args: Any, **kwargs: Any) -> List[Model]: ... -def resolve_url(to: Union[Callable, Model, str], *args: Any, **kwargs: Any) -> str: ... diff --git a/django-stubs-generated/templatetags/__init__.pyi b/django-stubs-generated/templatetags/__init__.pyi deleted file mode 100644 index e69de29..0000000 diff --git a/django-stubs-generated/utils/__init__.pyi b/django-stubs-generated/utils/__init__.pyi deleted file mode 100644 index e69de29..0000000 diff --git a/django-stubs-generated/utils/baseconv.pyi b/django-stubs-generated/utils/baseconv.pyi deleted file mode 100644 index ee465ca..0000000 --- a/django-stubs-generated/utils/baseconv.pyi +++ /dev/null @@ -1,24 +0,0 @@ -from typing import Any, Optional, Tuple, Union - -BASE2_ALPHABET: str -BASE16_ALPHABET: str -BASE56_ALPHABET: str -BASE36_ALPHABET: str -BASE62_ALPHABET: str -BASE64_ALPHABET: Any - -class BaseConverter: - decimal_digits: str = ... - sign: str = ... - digits: str = ... - def __init__(self, digits: str, sign: str = ...) -> None: ... - def encode(self, i: int) -> str: ... - def decode(self, s: str) -> int: ... - def convert(self, number: Union[int, str], from_digits: str, to_digits: str, sign: str) -> Tuple[int, str]: ... - -base2: Any -base16: Any -base36: Any -base56: Any -base62: Any -base64: Any diff --git a/django-stubs-generated/utils/datastructures.pyi b/django-stubs-generated/utils/datastructures.pyi deleted file mode 100644 index 235765d..0000000 --- a/django-stubs-generated/utils/datastructures.pyi +++ /dev/null @@ -1,104 +0,0 @@ -from collections import OrderedDict -from datetime import datetime -from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, Union -from unittest.case import TestCase -from uuid import UUID - -from django.contrib.sitemaps import GenericSitemap -from django.core.files.uploadedfile import InMemoryUploadedFile, UploadedFile -from django.db.models.base import Model -from django.db.models.expressions import Combinable -from django.test.testcases import SerializeMixin -from django.test.utils import LoggingCaptureMixin -from django.urls.converters import IntConverter, StringConverter - -class OrderedSet: - dict: collections.OrderedDict = ... - def __init__( - self, - iterable: Optional[ - Union[ - List[Tuple[str, str]], List[datetime], List[Combinable], List[int], List[str], List[UUID], OrderedDict - ] - ] = ..., - ) -> None: ... - def add(self, item: Union[Type[Model], SerializeMixin, LoggingCaptureMixin, int, TestCase]) -> None: ... - def remove(self, item: Any) -> None: ... - def discard(self, item: Any) -> None: ... - def __iter__(self): ... - def __contains__(self, item: Any): ... - def __bool__(self) -> bool: ... - def __len__(self) -> int: ... - -class MultiValueDictKeyError(KeyError): ... - -class MultiValueDict(dict): - def __init__( - self, - key_to_list_mapping: Union[ - Dict[str, List[List[Any]]], - Dict[str, List[int]], - Dict[str, List[str]], - List[Tuple[str, Union[List[List[Any]], List[str]]]], - Tuple, - ] = ..., - ) -> None: ... - def __getitem__(self, key: str) -> Optional[Union[List[str], UploadedFile, str]]: ... - def __setitem__(self, key: str, value: Optional[Union[int, str]]) -> None: ... - def __copy__(self) -> MultiValueDict: ... - def __deepcopy__(self, memo: Any): ... - def get( - self, key: str, default: Optional[Union[int, str]] = ... - ) -> Optional[Union[InMemoryUploadedFile, int, str]]: ... - def getlist(self, key: Optional[Union[Callable, str]], default: Any = ...) -> Any: ... - def setlist(self, key: Union[Callable, str], list_: List[str]) -> None: ... - def setdefault(self, key: str, default: str = ...) -> str: ... - def setlistdefault( - self, key: Union[Callable, str], default_list: None = ... - ) -> Union[ - List[Tuple[List[Tuple[str, List[str]]], str, Dict[str, str], Dict[Any, Any]]], List[UploadedFile], List[str] - ]: ... - def appendlist( - self, - key: Union[Callable, str], - value: Union[ - Tuple[ - List[Tuple[str, List[str]]], - str, - Dict[str, Dict[str, GenericSitemap]], - Dict[str, Union[IntConverter, StringConverter]], - ], - UploadedFile, - str, - ], - ) -> None: ... - def items(self) -> Iterator[Tuple[str, InMemoryUploadedFile]]: ... - def lists(self): ... - def values(self) -> Iterator[str]: ... - def copy(self) -> MultiValueDict: ... - def update(self, *args: Any, **kwargs: Any) -> None: ... - def dict(self) -> Dict[str, str]: ... - -class ImmutableList(tuple): - warning: str = ... - def __new__(cls: Type[ImmutableList], *args: Any, warning: str = ..., **kwargs: Any) -> ImmutableList: ... - def complain(self, *wargs: Any, **kwargs: Any) -> Any: ... - __delitem__: Any = ... - __delslice__: Any = ... - __iadd__: Any = ... - __imul__: Any = ... - __setitem__: Any = ... - __setslice__: Any = ... - append: Any = ... - extend: Any = ... - insert: Any = ... - pop: Any = ... - remove: Any = ... - sort: Any = ... - reverse: Any = ... - -class DictWrapper(dict): - func: Callable = ... - prefix: str = ... - def __init__(self, data: Dict[str, str], func: Callable, prefix: str) -> None: ... - def __getitem__(self, key: str) -> Optional[Union[int, str]]: ... diff --git a/django-stubs-generated/utils/functional.pyi b/django-stubs-generated/utils/functional.pyi deleted file mode 100644 index 8b15828..0000000 --- a/django-stubs-generated/utils/functional.pyi +++ /dev/null @@ -1,54 +0,0 @@ -from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union - -from django.db.models.base import Model - -def curry(_curried_func: Any, *args: Any, **kwargs: Any): ... - -class cached_property: - func: Callable = ... - __doc__: Any = ... - name: str = ... - def __init__(self, func: Callable, name: Optional[str] = ...) -> None: ... - def __get__(self, instance: Any, cls: Type[Any] = ...) -> Any: ... - -class Promise: ... - -def lazy(func: Union[Callable, Type[str]], *resultclasses: Any) -> Callable: ... -def lazystr(text: Any): ... -def keep_lazy(*resultclasses: Any) -> Callable: ... -def keep_lazy_text(func: Callable) -> Callable: ... - -empty: Any - -def new_method_proxy(func: Any): ... - -class LazyObject: - def __init__(self) -> None: ... - __getattr__: Any = ... - def __setattr__(self, name: str, value: Any) -> None: ... - def __delattr__(self, name: str) -> None: ... - def __reduce__(self) -> Tuple[Callable, Tuple[Model]]: ... - def __copy__(self): ... - def __deepcopy__(self, memo: Any): ... - __bytes__: Any = ... - __bool__: Any = ... - __dir__: Any = ... - __class__: Any = ... - __eq__: Any = ... - __ne__: Any = ... - __hash__: Any = ... - __getitem__: Any = ... - __setitem__: Any = ... - __delitem__: Any = ... - __iter__: Any = ... - __len__: Any = ... - __contains__: Any = ... - -def unpickle_lazyobject(wrapped: Model) -> Model: ... - -class SimpleLazyObject(LazyObject): - def __init__(self, func: Callable) -> None: ... - def __copy__(self) -> List[int]: ... - def __deepcopy__(self, memo: Dict[Any, Any]) -> List[int]: ... - -def partition(predicate: Callable, values: List[Model]) -> Tuple[List[Model], List[Model]]: ... diff --git a/django-stubs-generated/utils/safestring.pyi b/django-stubs-generated/utils/safestring.pyi deleted file mode 100644 index 33719fa..0000000 --- a/django-stubs-generated/utils/safestring.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from typing import Any, Callable, Optional, Union - -from django.forms.boundfield import BoundField - -class SafeData: - def __html__(self) -> SafeText: ... - -class SafeBytes(bytes, SafeData): - def __add__(self, rhs: Any): ... - -class SafeText(str, SafeData): - def __add__(self, rhs: str) -> str: ... - -SafeString = SafeText - -def mark_safe(s: Union[Callable, BoundField, str]) -> Union[Callable, BoundField, str]: ... diff --git a/django-stubs-generated/utils/timezone.pyi b/django-stubs-generated/utils/timezone.pyi deleted file mode 100644 index 6642ee6..0000000 --- a/django-stubs-generated/utils/timezone.pyi +++ /dev/null @@ -1,33 +0,0 @@ -from contextlib import ContextDecorator -from datetime import date, datetime, timedelta, tzinfo -from typing import Any, Optional, Union - -class FixedOffset(tzinfo): - def __init__(self, offset: Optional[float] = ..., name: Optional[str] = ...) -> None: ... - def utcoffset(self, dt: Union[datetime, str]) -> timedelta: ... - def tzname(self, dt: Optional[Union[datetime, str]]) -> str: ... - def dst(self, dt: datetime) -> timedelta: ... - -utc: Any - -def get_fixed_timezone(offset: Union[timedelta, int]) -> FixedOffset: ... -def get_default_timezone(): ... -def get_default_timezone_name() -> str: ... -def get_current_timezone() -> FixedOffset: ... -def get_current_timezone_name() -> str: ... -def activate(timezone: Optional[Union[FixedOffset, str]]) -> None: ... -def deactivate() -> None: ... - -class override(ContextDecorator): - timezone: Optional[Union[django.utils.timezone.FixedOffset, str]] = ... - def __init__(self, timezone: Optional[Union[FixedOffset, str]]) -> None: ... - old_timezone: Optional[django.utils.timezone.FixedOffset] = ... - def __enter__(self) -> None: ... - def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ... - -def localtime(value: Optional[datetime] = ..., timezone: Optional[FixedOffset] = ...) -> datetime: ... -def now() -> datetime: ... -def is_aware(value: datetime) -> bool: ... -def is_naive(value: datetime) -> bool: ... -def make_aware(value: datetime, timezone: Optional[FixedOffset] = ..., is_dst: Optional[bool] = ...) -> datetime: ... -def make_naive(value: datetime, timezone: Optional[FixedOffset] = ...) -> datetime: ... diff --git a/django-stubs-generated/utils/tree.pyi b/django-stubs-generated/utils/tree.pyi deleted file mode 100644 index 0206dc2..0000000 --- a/django-stubs-generated/utils/tree.pyi +++ /dev/null @@ -1,36 +0,0 @@ -from typing import Any, Dict, List, Optional, Tuple, Union - -from django.contrib.auth.models import User -from django.db.models.fields.related_lookups import RelatedLookupMixin -from django.db.models.lookups import BuiltinLookup, FieldGetDbPrepValueMixin -from django.db.models.sql.where import ExtraWhere, NothingNode - -class Node: - default: str = ... - children: Union[List[Tuple[str, int]], List[django.db.models.lookups.Contains]] = ... - connector: str = ... - negated: bool = ... - def __init__( - self, - children: Optional[ - Union[ - List[Dict[str, str]], - List[Tuple[str, List[User]]], - List[RelatedLookupMixin], - List[BuiltinLookup], - List[FieldGetDbPrepValueMixin], - List[NothingNode], - List[Node], - ] - ] = ..., - connector: Optional[str] = ..., - negated: bool = ..., - ) -> None: ... - def __deepcopy__(self, memodict: Dict[Any, Any]) -> Node: ... - def __len__(self) -> int: ... - def __bool__(self) -> bool: ... - def __contains__(self, other: Tuple[str, int]) -> bool: ... - def __eq__(self, other: Union[Tuple[str, List[Any]], BuiltinLookup, ExtraWhere, NothingNode, Node]) -> bool: ... - def __hash__(self) -> int: ... - def add(self, data: Any, conn_type: str, squash: bool = ...) -> Any: ... - def negate(self) -> None: ... diff --git a/django-stubs-generated/views/__init__.pyi b/django-stubs-generated/views/__init__.pyi deleted file mode 100644 index e69de29..0000000 diff --git a/django-stubs-generated/views/debug.pyi b/django-stubs-generated/views/debug.pyi deleted file mode 100644 index 8307c44..0000000 --- a/django-stubs-generated/views/debug.pyi +++ /dev/null @@ -1,52 +0,0 @@ -from typing import Any, Callable, Dict, List, Optional, Type, Union - -from django.core.handlers.wsgi import WSGIRequest -from django.http.request import QueryDict -from django.http.response import Http404, HttpResponse -from django.utils.safestring import SafeText - -DEBUG_ENGINE: Any -HIDDEN_SETTINGS: Any -CLEANSED_SUBSTITUTE: str -CURRENT_DIR: Any - -class CallableSettingWrapper: - def __init__(self, callable_setting: Union[Callable, Type[Any]]) -> None: ... - -def cleanse_setting(key: Union[int, str], value: Any) -> Any: ... -def get_safe_settings() -> Dict[str, Any]: ... -def technical_500_response(request: Any, exc_type: Any, exc_value: Any, tb: Any, status_code: int = ...): ... -def get_default_exception_reporter_filter() -> SafeExceptionReporterFilter: ... -def get_exception_reporter_filter(request: Optional[WSGIRequest]) -> SafeExceptionReporterFilter: ... - -class ExceptionReporterFilter: - def get_post_parameters(self, request: Any): ... - def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ... - -class SafeExceptionReporterFilter(ExceptionReporterFilter): - def is_active(self, request: Optional[WSGIRequest]) -> bool: ... - def get_cleansed_multivaluedict(self, request: WSGIRequest, multivaluedict: QueryDict) -> QueryDict: ... - def get_post_parameters(self, request: Optional[WSGIRequest]) -> Union[Dict[Any, Any], QueryDict]: ... - def cleanse_special_types(self, request: Optional[WSGIRequest], value: Any) -> Any: ... - def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ... - -class ExceptionReporter: - request: Optional[django.core.handlers.wsgi.WSGIRequest] = ... - filter: django.views.debug.SafeExceptionReporterFilter = ... - exc_type: None = ... - exc_value: Optional[str] = ... - tb: None = ... - is_email: bool = ... - template_info: None = ... - template_does_not_exist: bool = ... - postmortem: None = ... - def __init__( - self, request: Optional[WSGIRequest], exc_type: None, exc_value: Optional[str], tb: None, is_email: bool = ... - ) -> None: ... - def get_traceback_data(self) -> Dict[str, Any]: ... - def get_traceback_html(self) -> SafeText: ... - def get_traceback_text(self) -> SafeText: ... - def get_traceback_frames(self) -> List[Any]: ... - -def technical_404_response(request: WSGIRequest, exception: Http404) -> HttpResponse: ... -def default_urlconf(request: WSGIRequest) -> HttpResponse: ... diff --git a/django-stubs-generated/views/decorators/__init__.pyi b/django-stubs-generated/views/decorators/__init__.pyi deleted file mode 100644 index e69de29..0000000 diff --git a/django-stubs-generated/views/generic/__init__.pyi b/django-stubs-generated/views/generic/__init__.pyi deleted file mode 100644 index e69de29..0000000 diff --git a/django-stubs-generated/views/generic/base.pyi b/django-stubs-generated/views/generic/base.pyi deleted file mode 100644 index 751d1c5..0000000 --- a/django-stubs-generated/views/generic/base.pyi +++ /dev/null @@ -1,75 +0,0 @@ -from typing import Any, Callable, Dict, List, Optional, Union -from unittest.mock import MagicMock - -from django.contrib.auth.forms import AuthenticationForm -from django.contrib.sites.models import Site -from django.core.handlers.wsgi import WSGIRequest -from django.core.paginator import Page, Paginator -from django.http.request import HttpRequest -from django.http.response import HttpResponse, HttpResponseNotAllowed, HttpResponseRedirect -from django.template.response import TemplateResponse -from django.views.generic.list import ListView - -logger: Any - -class ContextMixin: - extra_context: Any = ... - def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ... - -class View: - http_method_names: Any = ... - def __init__(self, **kwargs: Any) -> None: ... - head: Any = ... - request: Any = ... - args: Any = ... - kwargs: Any = ... - def as_view(cls, **initkwargs: Any) -> Callable: ... - def dispatch(self, request: HttpRequest, *args: Any, **kwargs: Any) -> Union[HttpResponse, View]: ... - def http_method_not_allowed(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseNotAllowed: ... - def options(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - -class TemplateResponseMixin: - template_name: Any = ... - template_engine: Any = ... - response_class: Any = ... - content_type: Any = ... - def render_to_response( - self, - context: Union[ - Dict[str, Any], - Dict[str, Optional[Union[List[Dict[str, str]], bool, ListView]]], - Dict[str, Union[List[Dict[str, str]], bool, Page, Paginator, ListView]], - Dict[str, Union[AuthenticationForm, Site, TemplateResponseMixin, str]], - MagicMock, - ], - **response_kwargs: Any - ) -> TemplateResponse: ... - def get_template_names(self) -> List[str]: ... - -class TemplateView(TemplateResponseMixin, ContextMixin, View): - args: Tuple - content_type: str - extra_context: Dict[str, str] - head: Callable - kwargs: Dict[str, str] - request: django.core.handlers.wsgi.WSGIRequest - template_engine: str - template_name: str - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - -class RedirectView(View): - args: Tuple - kwargs: Dict[str, Union[int, str]] - request: django.core.handlers.wsgi.WSGIRequest - permanent: bool = ... - url: str = ... - pattern_name: str = ... - query_string: bool = ... - def get_redirect_url(self, *args: Any, **kwargs: Any) -> Optional[str]: ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - def head(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - def post(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def options(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def delete(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def put(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def patch(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... diff --git a/django-stubs-generated/views/generic/dates.pyi b/django-stubs-generated/views/generic/dates.pyi deleted file mode 100644 index d05a4b7..0000000 --- a/django-stubs-generated/views/generic/dates.pyi +++ /dev/null @@ -1,108 +0,0 @@ -from datetime import date -from typing import Any, Dict, Optional, Tuple, Union - -from django.core.handlers.wsgi import WSGIRequest -from django.db.models.base import Model -from django.db.models.query import QuerySet -from django.template.response import TemplateResponse -from django.views.generic.base import View -from django.views.generic.detail import BaseDetailView, SingleObjectTemplateResponseMixin -from django.views.generic.list import MultipleObjectMixin, MultipleObjectTemplateResponseMixin - -class YearMixin: - year_format: str = ... - year: Any = ... - def get_year_format(self) -> str: ... - def get_year(self) -> int: ... - def get_next_year(self, date: date) -> Optional[date]: ... - def get_previous_year(self, date: date) -> Optional[date]: ... - -class MonthMixin: - month_format: str = ... - month: Any = ... - def get_month_format(self) -> str: ... - def get_month(self) -> Union[int, str]: ... - def get_next_month(self, date: date) -> Optional[date]: ... - def get_previous_month(self, date: date) -> Optional[date]: ... - -class DayMixin: - day_format: str = ... - day: Any = ... - def get_day_format(self) -> str: ... - def get_day(self) -> Union[int, str]: ... - def get_next_day(self, date: date) -> Optional[date]: ... - def get_previous_day(self, date: date) -> Optional[date]: ... - -class WeekMixin: - week_format: str = ... - week: Any = ... - def get_week_format(self) -> str: ... - def get_week(self) -> int: ... - def get_next_week(self, date: date) -> Optional[date]: ... - def get_previous_week(self, date: date) -> Optional[date]: ... - -class DateMixin: - date_field: Any = ... - allow_future: bool = ... - def get_date_field(self) -> str: ... - def get_allow_future(self) -> bool: ... - def uses_datetime_field(self) -> bool: ... - -class BaseDateListView(MultipleObjectMixin, DateMixin, View): - allow_empty: bool = ... - date_list_period: str = ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - def get_dated_items(self) -> None: ... - def get_ordering(self) -> Union[Tuple[str, str], str]: ... - def get_dated_queryset(self, **lookup: Any) -> QuerySet: ... - def get_date_list_period(self) -> str: ... - def get_date_list(self, queryset: QuerySet, date_type: None = ..., ordering: str = ...) -> QuerySet: ... - -class BaseArchiveIndexView(BaseDateListView): - context_object_name: str = ... - def get_dated_items(self) -> Tuple[QuerySet, QuerySet, Dict[Any, Any]]: ... - -class ArchiveIndexView(MultipleObjectTemplateResponseMixin, BaseArchiveIndexView): - template_name_suffix: str = ... - -class BaseYearArchiveView(YearMixin, BaseDateListView): - date_list_period: str = ... - make_object_list: bool = ... - def get_dated_items(self) -> Tuple[QuerySet, QuerySet, Dict[str, Optional[date]]]: ... - def get_make_object_list(self) -> bool: ... - -class YearArchiveView(MultipleObjectTemplateResponseMixin, BaseYearArchiveView): - template_name_suffix: str = ... - -class BaseMonthArchiveView(YearMixin, MonthMixin, BaseDateListView): - date_list_period: str = ... - def get_dated_items(self) -> Tuple[QuerySet, QuerySet, Dict[str, Optional[date]]]: ... - -class MonthArchiveView(MultipleObjectTemplateResponseMixin, BaseMonthArchiveView): - template_name_suffix: str = ... - -class BaseWeekArchiveView(YearMixin, WeekMixin, BaseDateListView): - def get_dated_items(self) -> Tuple[None, QuerySet, Dict[str, Optional[date]]]: ... - -class WeekArchiveView(MultipleObjectTemplateResponseMixin, BaseWeekArchiveView): - template_name_suffix: str = ... - -class BaseDayArchiveView(YearMixin, MonthMixin, DayMixin, BaseDateListView): - def get_dated_items(self) -> Tuple[None, QuerySet, Dict[str, Optional[date]]]: ... - -class DayArchiveView(MultipleObjectTemplateResponseMixin, BaseDayArchiveView): - template_name_suffix: str = ... - -class BaseTodayArchiveView(BaseDayArchiveView): - def get_dated_items(self) -> Tuple[None, QuerySet, Dict[str, Optional[date]]]: ... - -class TodayArchiveView(MultipleObjectTemplateResponseMixin, BaseTodayArchiveView): - template_name_suffix: str = ... - -class BaseDateDetailView(YearMixin, MonthMixin, DayMixin, DateMixin, BaseDetailView): - def get_object(self, queryset: Optional[QuerySet] = ...) -> Model: ... - -class DateDetailView(SingleObjectTemplateResponseMixin, BaseDateDetailView): - template_name_suffix: str = ... - -def timezone_today() -> date: ... diff --git a/django-stubs-generated/views/generic/detail.pyi b/django-stubs-generated/views/generic/detail.pyi deleted file mode 100644 index 4540260..0000000 --- a/django-stubs-generated/views/generic/detail.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from typing import Any, Dict, List, Optional, Union - -from django.core.handlers.wsgi import WSGIRequest -from django.db.models.base import Model -from django.db.models.query import QuerySet -from django.template.response import TemplateResponse -from django.views.generic.base import ContextMixin, TemplateResponseMixin, View - -class SingleObjectMixin(ContextMixin): - model: Any = ... - queryset: Any = ... - slug_field: str = ... - context_object_name: Any = ... - slug_url_kwarg: str = ... - pk_url_kwarg: str = ... - query_pk_and_slug: bool = ... - def get_object(self, queryset: Optional[QuerySet] = ...) -> Model: ... - def get_queryset(self) -> QuerySet: ... - def get_slug_field(self) -> str: ... - def get_context_object_name(self, obj: Union[Dict[str, str], Model]) -> Optional[str]: ... - def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ... - -class BaseDetailView(SingleObjectMixin, View): - object: Any = ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - -class SingleObjectTemplateResponseMixin(TemplateResponseMixin): - template_name_field: Any = ... - template_name_suffix: str = ... - def get_template_names(self) -> List[str]: ... - -class DetailView(SingleObjectTemplateResponseMixin, BaseDetailView): ... diff --git a/django-stubs-generated/views/generic/edit.pyi b/django-stubs-generated/views/generic/edit.pyi deleted file mode 100644 index 6c80450..0000000 --- a/django-stubs-generated/views/generic/edit.pyi +++ /dev/null @@ -1,72 +0,0 @@ -from typing import Any, Dict, Optional, Type, Union - -from django.core.handlers.wsgi import WSGIRequest -from django.db.models.base import Model -from django.forms.forms import BaseForm, Form -from django.forms.models import ModelForm -from django.http.request import HttpRequest -from django.http.response import HttpResponse, HttpResponseRedirect -from django.template.response import TemplateResponse -from django.utils.datastructures import MultiValueDict -from django.views.generic.base import ContextMixin, TemplateResponseMixin, View -from django.views.generic.detail import BaseDetailView, SingleObjectMixin, SingleObjectTemplateResponseMixin - -class FormMixin(ContextMixin): - initial: Any = ... - form_class: Any = ... - success_url: Any = ... - prefix: Any = ... - def get_initial(self) -> Dict[Any, Any]: ... - def get_prefix(self) -> None: ... - def get_form_class(self) -> Type[Form]: ... - def get_form(self, form_class: None = ...) -> BaseForm: ... - def get_form_kwargs(self) -> Dict[str, Optional[Union[Dict[str, str], MultiValueDict]]]: ... - def get_success_url(self) -> str: ... - def form_valid(self, form: BaseForm) -> HttpResponseRedirect: ... - def form_invalid(self, form: Form) -> TemplateResponse: ... - def get_context_data(self, **kwargs: Any) -> Dict[str, Union[Model, BaseForm, TemplateResponseMixin]]: ... - -class ModelFormMixin(FormMixin, SingleObjectMixin): - request: django.core.handlers.wsgi.WSGIRequest - fields: Any = ... - def get_form_class(self) -> Type[ModelForm]: ... - def get_form_kwargs(self) -> Dict[str, Optional[Union[Dict[Any, Any], Model, MultiValueDict]]]: ... - def get_success_url(self) -> str: ... - object: Any = ... - def form_valid(self, form: ModelForm) -> HttpResponseRedirect: ... - -class ProcessFormView(View): - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - def post(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - def put(self, *args: Any, **kwargs: Any): ... - -class BaseFormView(FormMixin, ProcessFormView): ... -class FormView(TemplateResponseMixin, BaseFormView): ... - -class BaseCreateView(ModelFormMixin, ProcessFormView): - object: Any = ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - def post(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - -class CreateView(SingleObjectTemplateResponseMixin, BaseCreateView): - template_name_suffix: str = ... - -class BaseUpdateView(ModelFormMixin, ProcessFormView): - object: Any = ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - def post(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponse: ... - -class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): - template_name_suffix: str = ... - -class DeletionMixin: - success_url: Any = ... - object: Any = ... - def delete(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def post(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> HttpResponseRedirect: ... - def get_success_url(self) -> str: ... - -class BaseDeleteView(DeletionMixin, BaseDetailView): ... - -class DeleteView(SingleObjectTemplateResponseMixin, BaseDeleteView): - template_name_suffix: str = ... diff --git a/django-stubs-generated/views/generic/list.pyi b/django-stubs-generated/views/generic/list.pyi deleted file mode 100644 index e34b9b4..0000000 --- a/django-stubs-generated/views/generic/list.pyi +++ /dev/null @@ -1,48 +0,0 @@ -from typing import Any, Dict, List, Optional, Tuple, Union - -from django.core.handlers.wsgi import WSGIRequest -from django.core.paginator import Page, Paginator -from django.db.models.query import QuerySet -from django.template.response import TemplateResponse -from django.views.generic.base import ContextMixin, TemplateResponseMixin, View - -class MultipleObjectMixin(ContextMixin): - allow_empty: bool = ... - queryset: Any = ... - model: Any = ... - paginate_by: Any = ... - paginate_orphans: int = ... - context_object_name: Any = ... - paginator_class: Any = ... - page_kwarg: str = ... - ordering: Any = ... - def get_queryset(self) -> Union[List[Dict[str, str]], QuerySet]: ... - def get_ordering(self) -> Optional[Union[Tuple[str, str], str]]: ... - def paginate_queryset( - self, queryset: Union[List[Dict[str, str]], QuerySet], page_size: int - ) -> Tuple[Paginator, Page, Union[List[Dict[str, str]], QuerySet], bool]: ... - def get_paginate_by(self, queryset: Optional[Union[List[Dict[str, str]], QuerySet]]) -> Optional[int]: ... - def get_paginator( - self, - queryset: Union[List[Dict[str, str]], QuerySet], - per_page: int, - orphans: int = ..., - allow_empty_first_page: bool = ..., - **kwargs: Any - ) -> Paginator: ... - def get_paginate_orphans(self) -> int: ... - def get_allow_empty(self) -> bool: ... - def get_context_object_name( - self, object_list: Optional[Union[List[Dict[str, str]], QuerySet]] - ) -> Optional[str]: ... - def get_context_data(self, *, object_list: Optional[Any] = ..., **kwargs: Any) -> Dict[str, Any]: ... - -class BaseListView(MultipleObjectMixin, View): - object_list: Any = ... - def get(self, request: WSGIRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ... - -class MultipleObjectTemplateResponseMixin(TemplateResponseMixin): - template_name_suffix: str = ... - def get_template_names(self) -> List[str]: ... - -class ListView(MultipleObjectTemplateResponseMixin, BaseListView): ... diff --git a/django-stubs/contrib/admin/__init__.pyi b/django-stubs/contrib/admin/__init__.pyi new file mode 100644 index 0000000..a8d01d0 --- /dev/null +++ b/django-stubs/contrib/admin/__init__.pyi @@ -0,0 +1,23 @@ +from django.contrib.admin.decorators import register as register +from django.contrib.admin.filters import ( + AllValuesFieldListFilter as AllValuesFieldListFilter, + BooleanFieldListFilter as BooleanFieldListFilter, + ChoicesFieldListFilter as ChoicesFieldListFilter, + DateFieldListFilter as DateFieldListFilter, + FieldListFilter as FieldListFilter, + ListFilter as ListFilter, + RelatedFieldListFilter as RelatedFieldListFilter, + RelatedOnlyFieldListFilter as RelatedOnlyFieldListFilter, + SimpleListFilter as SimpleListFilter, +) +from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME as ACTION_CHECKBOX_NAME +from django.contrib.admin.options import ( + HORIZONTAL as HORIZONTAL, + VERTICAL as VERTICAL, + ModelAdmin as ModelAdmin, + StackedInline as StackedInline, + TabularInline as TabularInline, +) +from django.contrib.admin.sites import AdminSite as AdminSite, site as site + +def autodiscover() -> None: ... diff --git a/django-stubs-generated/contrib/admin/actions.pyi b/django-stubs/contrib/admin/actions.pyi similarity index 90% rename from django-stubs-generated/contrib/admin/actions.pyi rename to django-stubs/contrib/admin/actions.pyi index 0275e9f..30a41e8 100644 --- a/django-stubs-generated/contrib/admin/actions.pyi +++ b/django-stubs/contrib/admin/actions.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Optional from django.contrib.admin.options import ModelAdmin from django.core.handlers.wsgi import WSGIRequest diff --git a/django-stubs-generated/contrib/admin/apps.pyi b/django-stubs/contrib/admin/apps.pyi similarity index 93% rename from django-stubs-generated/contrib/admin/apps.pyi rename to django-stubs/contrib/admin/apps.pyi index c8736bd..1e372f2 100644 --- a/django-stubs-generated/contrib/admin/apps.pyi +++ b/django-stubs/contrib/admin/apps.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.apps import AppConfig diff --git a/django-stubs-generated/contrib/admin/checks.pyi b/django-stubs/contrib/admin/checks.pyi similarity index 95% rename from django-stubs-generated/contrib/admin/checks.pyi rename to django-stubs/contrib/admin/checks.pyi index 8c1aeca..bcadc94 100644 --- a/django-stubs-generated/contrib/admin/checks.pyi +++ b/django-stubs/contrib/admin/checks.pyi @@ -1,4 +1,4 @@ -from typing import Any, List, Optional +from typing import Any, List from django.contrib.admin.options import BaseModelAdmin, InlineModelAdmin, ModelAdmin from django.core.checks.messages import Error diff --git a/django-stubs-generated/contrib/admin/decorators.pyi b/django-stubs/contrib/admin/decorators.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/decorators.pyi rename to django-stubs/contrib/admin/decorators.pyi diff --git a/django-stubs-generated/contrib/admin/filters.pyi b/django-stubs/contrib/admin/filters.pyi similarity index 98% rename from django-stubs-generated/contrib/admin/filters.pyi rename to django-stubs/contrib/admin/filters.pyi index 9af7981..a892a7d 100644 --- a/django-stubs-generated/contrib/admin/filters.pyi +++ b/django-stubs/contrib/admin/filters.pyi @@ -3,12 +3,12 @@ from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union from django.contrib.admin.options import ModelAdmin from django.core.handlers.wsgi import WSGIRequest from django.db.models.base import Model -from django.db.models.fields import BooleanField, DateField, Field from django.db.models.fields.mixins import FieldCacheMixin from django.db.models.fields.related import RelatedField -from django.db.models.fields.reverse_related import ForeignObjectRel from django.db.models.query import QuerySet +from django.db.models.fields import BooleanField, DateField, Field + class ListFilter: title: Any = ... template: str = ... diff --git a/django-stubs-generated/contrib/admin/forms.pyi b/django-stubs/contrib/admin/forms.pyi similarity index 96% rename from django-stubs-generated/contrib/admin/forms.pyi rename to django-stubs/contrib/admin/forms.pyi index 25998f6..f09ae0d 100644 --- a/django-stubs-generated/contrib/admin/forms.pyi +++ b/django-stubs/contrib/admin/forms.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.contrib.auth.forms import AuthenticationForm, PasswordChangeForm from django.contrib.auth.models import User diff --git a/django-stubs-generated/contrib/admin/helpers.pyi b/django-stubs/contrib/admin/helpers.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/helpers.pyi rename to django-stubs/contrib/admin/helpers.pyi diff --git a/django-stubs-generated/contrib/admin/models.pyi b/django-stubs/contrib/admin/models.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/models.pyi rename to django-stubs/contrib/admin/models.pyi diff --git a/django-stubs-generated/contrib/admin/options.pyi b/django-stubs/contrib/admin/options.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/options.pyi rename to django-stubs/contrib/admin/options.pyi diff --git a/django-stubs-generated/contrib/admin/sites.pyi b/django-stubs/contrib/admin/sites.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/sites.pyi rename to django-stubs/contrib/admin/sites.pyi diff --git a/django-stubs-generated/contrib/__init__.pyi b/django-stubs/contrib/admin/templatetags/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/__init__.pyi rename to django-stubs/contrib/admin/templatetags/__init__.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/admin_list.pyi b/django-stubs/contrib/admin/templatetags/admin_list.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/admin_list.pyi rename to django-stubs/contrib/admin/templatetags/admin_list.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/admin_modify.pyi b/django-stubs/contrib/admin/templatetags/admin_modify.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/admin_modify.pyi rename to django-stubs/contrib/admin/templatetags/admin_modify.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/admin_static.pyi b/django-stubs/contrib/admin/templatetags/admin_static.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/admin_static.pyi rename to django-stubs/contrib/admin/templatetags/admin_static.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/admin_urls.pyi b/django-stubs/contrib/admin/templatetags/admin_urls.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/admin_urls.pyi rename to django-stubs/contrib/admin/templatetags/admin_urls.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/base.pyi b/django-stubs/contrib/admin/templatetags/base.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/base.pyi rename to django-stubs/contrib/admin/templatetags/base.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/log.pyi b/django-stubs/contrib/admin/templatetags/log.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/log.pyi rename to django-stubs/contrib/admin/templatetags/log.pyi diff --git a/django-stubs-generated/contrib/admin/utils.pyi b/django-stubs/contrib/admin/utils.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/utils.pyi rename to django-stubs/contrib/admin/utils.pyi diff --git a/django-stubs-generated/contrib/admin/templatetags/__init__.pyi b/django-stubs/contrib/admin/views/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/templatetags/__init__.pyi rename to django-stubs/contrib/admin/views/__init__.pyi diff --git a/django-stubs-generated/contrib/admin/views/autocomplete.pyi b/django-stubs/contrib/admin/views/autocomplete.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/views/autocomplete.pyi rename to django-stubs/contrib/admin/views/autocomplete.pyi diff --git a/django-stubs-generated/contrib/admin/views/decorators.pyi b/django-stubs/contrib/admin/views/decorators.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/views/decorators.pyi rename to django-stubs/contrib/admin/views/decorators.pyi diff --git a/django-stubs-generated/contrib/admin/views/main.pyi b/django-stubs/contrib/admin/views/main.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/views/main.pyi rename to django-stubs/contrib/admin/views/main.pyi diff --git a/django-stubs-generated/contrib/admin/widgets.pyi b/django-stubs/contrib/admin/widgets.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/widgets.pyi rename to django-stubs/contrib/admin/widgets.pyi diff --git a/django-stubs-generated/contrib/admin/views/__init__.pyi b/django-stubs/contrib/admindocs/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/admin/views/__init__.pyi rename to django-stubs/contrib/admindocs/__init__.pyi diff --git a/django-stubs-generated/contrib/admindocs/middleware.pyi b/django-stubs/contrib/admindocs/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/admindocs/middleware.pyi rename to django-stubs/contrib/admindocs/middleware.pyi diff --git a/django-stubs-generated/contrib/admindocs/utils.pyi b/django-stubs/contrib/admindocs/utils.pyi similarity index 100% rename from django-stubs-generated/contrib/admindocs/utils.pyi rename to django-stubs/contrib/admindocs/utils.pyi diff --git a/django-stubs-generated/contrib/admindocs/views.pyi b/django-stubs/contrib/admindocs/views.pyi similarity index 100% rename from django-stubs-generated/contrib/admindocs/views.pyi rename to django-stubs/contrib/admindocs/views.pyi diff --git a/django-stubs-generated/contrib/auth/__init__.pyi b/django-stubs/contrib/auth/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/__init__.pyi rename to django-stubs/contrib/auth/__init__.pyi diff --git a/django-stubs-generated/contrib/auth/admin.pyi b/django-stubs/contrib/auth/admin.pyi similarity index 81% rename from django-stubs-generated/contrib/auth/admin.pyi rename to django-stubs/contrib/auth/admin.pyi index 4e2c5b2..61b00f6 100644 --- a/django-stubs-generated/contrib/auth/admin.pyi +++ b/django-stubs/contrib/auth/admin.pyi @@ -1,24 +1,23 @@ -from typing import Any, Dict, List, Optional, Tuple +from typing import Any, Dict, List, Optional, Tuple, Type -from django.contrib import admin -from django.contrib.auth.models import User +from django.contrib.auth.models import User, Group from django.core.handlers.wsgi import WSGIRequest from django.db.models.fields.related import ManyToManyField from django.forms.models import ModelMultipleChoiceField from django.http.response import HttpResponse from django.urls.resolvers import URLPattern +from django.contrib import admin +from django.contrib.admin.sites import AdminSite + csrf_protect_m: Any sensitive_post_parameters_m: Any class GroupAdmin(admin.ModelAdmin): - admin_site: django.contrib.admin.sites.AdminSite - formfield_overrides: Dict[ - Type[Union[django.db.models.fields.DateTimeCheckMixin, django.db.models.fields.Field]], - Dict[str, Type[Union[django.forms.fields.SplitDateTimeField, django.forms.widgets.Widget]]], - ] - model: Type[django.contrib.auth.models.Group] - opts: django.db.models.options.Options + admin_site: AdminSite + formfield_overrides: Any + model: Type[Group] + opts: Options search_fields: Any = ... ordering: Any = ... filter_horizontal: Any = ... diff --git a/django-stubs-generated/contrib/auth/apps.pyi b/django-stubs/contrib/auth/apps.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/apps.pyi rename to django-stubs/contrib/auth/apps.pyi diff --git a/django-stubs-generated/contrib/auth/backends.pyi b/django-stubs/contrib/auth/backends.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/backends.pyi rename to django-stubs/contrib/auth/backends.pyi diff --git a/django-stubs-generated/contrib/auth/base_user.pyi b/django-stubs/contrib/auth/base_user.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/base_user.pyi rename to django-stubs/contrib/auth/base_user.pyi diff --git a/django-stubs-generated/contrib/auth/checks.pyi b/django-stubs/contrib/auth/checks.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/checks.pyi rename to django-stubs/contrib/auth/checks.pyi diff --git a/django-stubs-generated/contrib/auth/context_processors.pyi b/django-stubs/contrib/auth/context_processors.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/context_processors.pyi rename to django-stubs/contrib/auth/context_processors.pyi diff --git a/django-stubs-generated/contrib/auth/decorators.pyi b/django-stubs/contrib/auth/decorators.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/decorators.pyi rename to django-stubs/contrib/auth/decorators.pyi diff --git a/django-stubs-generated/contrib/auth/forms.pyi b/django-stubs/contrib/auth/forms.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/forms.pyi rename to django-stubs/contrib/auth/forms.pyi diff --git a/django-stubs-generated/contrib/admindocs/__init__.pyi b/django-stubs/contrib/auth/handlers/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/admindocs/__init__.pyi rename to django-stubs/contrib/auth/handlers/__init__.pyi diff --git a/django-stubs-generated/contrib/auth/handlers/modwsgi.pyi b/django-stubs/contrib/auth/handlers/modwsgi.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/handlers/modwsgi.pyi rename to django-stubs/contrib/auth/handlers/modwsgi.pyi diff --git a/django-stubs-generated/contrib/auth/hashers.pyi b/django-stubs/contrib/auth/hashers.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/hashers.pyi rename to django-stubs/contrib/auth/hashers.pyi diff --git a/django-stubs-generated/contrib/auth/management/__init__.pyi b/django-stubs/contrib/auth/management/__init__.pyi similarity index 91% rename from django-stubs-generated/contrib/auth/management/__init__.pyi rename to django-stubs/contrib/auth/management/__init__.pyi index c63d6df..681a10a 100644 --- a/django-stubs-generated/contrib/auth/management/__init__.pyi +++ b/django-stubs/contrib/auth/management/__init__.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.apps.config import AppConfig from django.apps.registry import Apps diff --git a/django-stubs-generated/contrib/auth/handlers/__init__.pyi b/django-stubs/contrib/auth/management/commands/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/handlers/__init__.pyi rename to django-stubs/contrib/auth/management/commands/__init__.pyi diff --git a/django-stubs/contrib/auth/management/commands/changepassword.pyi b/django-stubs/contrib/auth/management/commands/changepassword.pyi new file mode 100644 index 0000000..0998c2d --- /dev/null +++ b/django-stubs/contrib/auth/management/commands/changepassword.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from django.core.management.base import BaseCommand + +UserModel: Any + +class Command(BaseCommand): ... diff --git a/django-stubs/contrib/auth/management/commands/createsuperuser.pyi b/django-stubs/contrib/auth/management/commands/createsuperuser.pyi new file mode 100644 index 0000000..3490982 --- /dev/null +++ b/django-stubs/contrib/auth/management/commands/createsuperuser.pyi @@ -0,0 +1,4 @@ +from django.core.management.base import BaseCommand + +class NotRunningInTTYException(Exception): ... +class Command(BaseCommand): ... diff --git a/django-stubs-generated/contrib/auth/middleware.pyi b/django-stubs/contrib/auth/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/middleware.pyi rename to django-stubs/contrib/auth/middleware.pyi diff --git a/django-stubs-generated/contrib/auth/mixins.pyi b/django-stubs/contrib/auth/mixins.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/mixins.pyi rename to django-stubs/contrib/auth/mixins.pyi diff --git a/django-stubs-generated/contrib/auth/models.pyi b/django-stubs/contrib/auth/models.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/models.pyi rename to django-stubs/contrib/auth/models.pyi diff --git a/django-stubs-generated/contrib/auth/password_validation.pyi b/django-stubs/contrib/auth/password_validation.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/password_validation.pyi rename to django-stubs/contrib/auth/password_validation.pyi diff --git a/django-stubs-generated/contrib/auth/tokens.pyi b/django-stubs/contrib/auth/tokens.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/tokens.pyi rename to django-stubs/contrib/auth/tokens.pyi diff --git a/django-stubs-generated/contrib/auth/views.pyi b/django-stubs/contrib/auth/views.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/views.pyi rename to django-stubs/contrib/auth/views.pyi diff --git a/django-stubs-generated/contrib/auth/management/commands/__init__.pyi b/django-stubs/contrib/contenttypes/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/auth/management/commands/__init__.pyi rename to django-stubs/contrib/contenttypes/__init__.pyi diff --git a/django-stubs-generated/contrib/contenttypes/admin.pyi b/django-stubs/contrib/contenttypes/admin.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/admin.pyi rename to django-stubs/contrib/contenttypes/admin.pyi diff --git a/django-stubs-generated/contrib/contenttypes/apps.pyi b/django-stubs/contrib/contenttypes/apps.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/apps.pyi rename to django-stubs/contrib/contenttypes/apps.pyi diff --git a/django-stubs-generated/contrib/contenttypes/checks.pyi b/django-stubs/contrib/contenttypes/checks.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/checks.pyi rename to django-stubs/contrib/contenttypes/checks.pyi diff --git a/django-stubs-generated/contrib/contenttypes/fields.pyi b/django-stubs/contrib/contenttypes/fields.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/fields.pyi rename to django-stubs/contrib/contenttypes/fields.pyi diff --git a/django-stubs-generated/contrib/contenttypes/forms.pyi b/django-stubs/contrib/contenttypes/forms.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/forms.pyi rename to django-stubs/contrib/contenttypes/forms.pyi diff --git a/django-stubs-generated/contrib/contenttypes/management/__init__.pyi b/django-stubs/contrib/contenttypes/management/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/management/__init__.pyi rename to django-stubs/contrib/contenttypes/management/__init__.pyi diff --git a/django-stubs-generated/contrib/contenttypes/__init__.pyi b/django-stubs/contrib/contenttypes/management/commands/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/__init__.pyi rename to django-stubs/contrib/contenttypes/management/commands/__init__.pyi diff --git a/django-stubs-generated/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi b/django-stubs/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi rename to django-stubs/contrib/contenttypes/management/commands/remove_stale_contenttypes.pyi diff --git a/django-stubs-generated/contrib/contenttypes/models.pyi b/django-stubs/contrib/contenttypes/models.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/models.pyi rename to django-stubs/contrib/contenttypes/models.pyi diff --git a/django-stubs-generated/contrib/contenttypes/views.pyi b/django-stubs/contrib/contenttypes/views.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/views.pyi rename to django-stubs/contrib/contenttypes/views.pyi diff --git a/django-stubs-generated/contrib/contenttypes/management/commands/__init__.pyi b/django-stubs/contrib/flatpages/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/contenttypes/management/commands/__init__.pyi rename to django-stubs/contrib/flatpages/__init__.pyi diff --git a/django-stubs-generated/contrib/flatpages/forms.pyi b/django-stubs/contrib/flatpages/forms.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/forms.pyi rename to django-stubs/contrib/flatpages/forms.pyi diff --git a/django-stubs-generated/contrib/flatpages/middleware.pyi b/django-stubs/contrib/flatpages/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/middleware.pyi rename to django-stubs/contrib/flatpages/middleware.pyi diff --git a/django-stubs-generated/contrib/flatpages/models.pyi b/django-stubs/contrib/flatpages/models.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/models.pyi rename to django-stubs/contrib/flatpages/models.pyi diff --git a/django-stubs-generated/contrib/flatpages/sitemaps.pyi b/django-stubs/contrib/flatpages/sitemaps.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/sitemaps.pyi rename to django-stubs/contrib/flatpages/sitemaps.pyi diff --git a/django-stubs-generated/contrib/flatpages/__init__.pyi b/django-stubs/contrib/flatpages/templatetags/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/__init__.pyi rename to django-stubs/contrib/flatpages/templatetags/__init__.pyi diff --git a/django-stubs-generated/contrib/flatpages/templatetags/flatpages.pyi b/django-stubs/contrib/flatpages/templatetags/flatpages.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/templatetags/flatpages.pyi rename to django-stubs/contrib/flatpages/templatetags/flatpages.pyi diff --git a/django-stubs-generated/contrib/flatpages/views.pyi b/django-stubs/contrib/flatpages/views.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/views.pyi rename to django-stubs/contrib/flatpages/views.pyi diff --git a/django-stubs-generated/contrib/flatpages/templatetags/__init__.pyi b/django-stubs/contrib/humanize/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/flatpages/templatetags/__init__.pyi rename to django-stubs/contrib/humanize/__init__.pyi diff --git a/django-stubs-generated/contrib/humanize/__init__.pyi b/django-stubs/contrib/humanize/templatetags/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/humanize/__init__.pyi rename to django-stubs/contrib/humanize/templatetags/__init__.pyi diff --git a/django-stubs-generated/contrib/humanize/templatetags/humanize.pyi b/django-stubs/contrib/humanize/templatetags/humanize.pyi similarity index 100% rename from django-stubs-generated/contrib/humanize/templatetags/humanize.pyi rename to django-stubs/contrib/humanize/templatetags/humanize.pyi diff --git a/django-stubs-generated/contrib/humanize/templatetags/__init__.pyi b/django-stubs/contrib/messages/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/humanize/templatetags/__init__.pyi rename to django-stubs/contrib/messages/__init__.pyi diff --git a/django-stubs-generated/contrib/messages/api.pyi b/django-stubs/contrib/messages/api.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/api.pyi rename to django-stubs/contrib/messages/api.pyi diff --git a/django-stubs-generated/contrib/messages/context_processors.pyi b/django-stubs/contrib/messages/context_processors.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/context_processors.pyi rename to django-stubs/contrib/messages/context_processors.pyi diff --git a/django-stubs-generated/contrib/messages/middleware.pyi b/django-stubs/contrib/messages/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/middleware.pyi rename to django-stubs/contrib/messages/middleware.pyi diff --git a/django-stubs-generated/contrib/messages/storage/__init__.pyi b/django-stubs/contrib/messages/storage/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/storage/__init__.pyi rename to django-stubs/contrib/messages/storage/__init__.pyi diff --git a/django-stubs-generated/contrib/messages/storage/base.pyi b/django-stubs/contrib/messages/storage/base.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/storage/base.pyi rename to django-stubs/contrib/messages/storage/base.pyi diff --git a/django-stubs-generated/contrib/messages/storage/cookie.pyi b/django-stubs/contrib/messages/storage/cookie.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/storage/cookie.pyi rename to django-stubs/contrib/messages/storage/cookie.pyi diff --git a/django-stubs-generated/contrib/messages/storage/fallback.pyi b/django-stubs/contrib/messages/storage/fallback.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/storage/fallback.pyi rename to django-stubs/contrib/messages/storage/fallback.pyi diff --git a/django-stubs-generated/contrib/messages/storage/session.pyi b/django-stubs/contrib/messages/storage/session.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/storage/session.pyi rename to django-stubs/contrib/messages/storage/session.pyi diff --git a/django-stubs-generated/contrib/messages/utils.pyi b/django-stubs/contrib/messages/utils.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/utils.pyi rename to django-stubs/contrib/messages/utils.pyi diff --git a/django-stubs-generated/contrib/messages/views.pyi b/django-stubs/contrib/messages/views.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/views.pyi rename to django-stubs/contrib/messages/views.pyi diff --git a/django-stubs-generated/contrib/messages/__init__.pyi b/django-stubs/contrib/redirects/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/messages/__init__.pyi rename to django-stubs/contrib/redirects/__init__.pyi diff --git a/django-stubs-generated/contrib/redirects/middleware.pyi b/django-stubs/contrib/redirects/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/redirects/middleware.pyi rename to django-stubs/contrib/redirects/middleware.pyi diff --git a/django-stubs-generated/contrib/redirects/models.pyi b/django-stubs/contrib/redirects/models.pyi similarity index 100% rename from django-stubs-generated/contrib/redirects/models.pyi rename to django-stubs/contrib/redirects/models.pyi diff --git a/django-stubs-generated/contrib/postgres/__init__.pyi b/django-stubs/contrib/sessions/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/postgres/__init__.pyi rename to django-stubs/contrib/sessions/__init__.pyi diff --git a/django-stubs-generated/contrib/redirects/__init__.pyi b/django-stubs/contrib/sessions/backends/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/redirects/__init__.pyi rename to django-stubs/contrib/sessions/backends/__init__.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/base.pyi b/django-stubs/contrib/sessions/backends/base.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/base.pyi rename to django-stubs/contrib/sessions/backends/base.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/cache.pyi b/django-stubs/contrib/sessions/backends/cache.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/cache.pyi rename to django-stubs/contrib/sessions/backends/cache.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/cached_db.pyi b/django-stubs/contrib/sessions/backends/cached_db.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/cached_db.pyi rename to django-stubs/contrib/sessions/backends/cached_db.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/db.pyi b/django-stubs/contrib/sessions/backends/db.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/db.pyi rename to django-stubs/contrib/sessions/backends/db.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/file.pyi b/django-stubs/contrib/sessions/backends/file.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/file.pyi rename to django-stubs/contrib/sessions/backends/file.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/signed_cookies.pyi b/django-stubs/contrib/sessions/backends/signed_cookies.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/signed_cookies.pyi rename to django-stubs/contrib/sessions/backends/signed_cookies.pyi diff --git a/django-stubs-generated/contrib/sessions/base_session.pyi b/django-stubs/contrib/sessions/base_session.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/base_session.pyi rename to django-stubs/contrib/sessions/base_session.pyi diff --git a/django-stubs-generated/contrib/sessions/__init__.pyi b/django-stubs/contrib/sessions/management/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/__init__.pyi rename to django-stubs/contrib/sessions/management/__init__.pyi diff --git a/django-stubs-generated/contrib/sessions/backends/__init__.pyi b/django-stubs/contrib/sessions/management/commands/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/backends/__init__.pyi rename to django-stubs/contrib/sessions/management/commands/__init__.pyi diff --git a/django-stubs-generated/contrib/sessions/management/commands/clearsessions.pyi b/django-stubs/contrib/sessions/management/commands/clearsessions.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/management/commands/clearsessions.pyi rename to django-stubs/contrib/sessions/management/commands/clearsessions.pyi diff --git a/django-stubs-generated/contrib/sessions/middleware.pyi b/django-stubs/contrib/sessions/middleware.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/middleware.pyi rename to django-stubs/contrib/sessions/middleware.pyi diff --git a/django-stubs-generated/contrib/sessions/models.pyi b/django-stubs/contrib/sessions/models.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/models.pyi rename to django-stubs/contrib/sessions/models.pyi diff --git a/django-stubs-generated/contrib/sessions/serializers.pyi b/django-stubs/contrib/sessions/serializers.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/serializers.pyi rename to django-stubs/contrib/sessions/serializers.pyi diff --git a/django-stubs-generated/contrib/sitemaps/__init__.pyi b/django-stubs/contrib/sitemaps/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sitemaps/__init__.pyi rename to django-stubs/contrib/sitemaps/__init__.pyi diff --git a/django-stubs-generated/contrib/sessions/management/__init__.pyi b/django-stubs/contrib/sitemaps/management/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/management/__init__.pyi rename to django-stubs/contrib/sitemaps/management/__init__.pyi diff --git a/django-stubs-generated/contrib/sessions/management/commands/__init__.pyi b/django-stubs/contrib/sitemaps/management/commands/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sessions/management/commands/__init__.pyi rename to django-stubs/contrib/sitemaps/management/commands/__init__.pyi diff --git a/django-stubs/contrib/sitemaps/management/commands/ping_google.pyi b/django-stubs/contrib/sitemaps/management/commands/ping_google.pyi new file mode 100644 index 0000000..8d75fb4 --- /dev/null +++ b/django-stubs/contrib/sitemaps/management/commands/ping_google.pyi @@ -0,0 +1,3 @@ +from django.core.management.base import BaseCommand + +class Command(BaseCommand): ... diff --git a/django-stubs-generated/contrib/sitemaps/views.pyi b/django-stubs/contrib/sitemaps/views.pyi similarity index 100% rename from django-stubs-generated/contrib/sitemaps/views.pyi rename to django-stubs/contrib/sitemaps/views.pyi diff --git a/django-stubs-generated/contrib/sitemaps/management/__init__.pyi b/django-stubs/contrib/sites/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sitemaps/management/__init__.pyi rename to django-stubs/contrib/sites/__init__.pyi diff --git a/django-stubs-generated/contrib/sites/apps.pyi b/django-stubs/contrib/sites/apps.pyi similarity index 76% rename from django-stubs-generated/contrib/sites/apps.pyi rename to django-stubs/contrib/sites/apps.pyi index 85686c9..16b7830 100644 --- a/django-stubs-generated/contrib/sites/apps.pyi +++ b/django-stubs/contrib/sites/apps.pyi @@ -1,9 +1,7 @@ -from typing import Any, Optional +from typing import Any from django.apps import AppConfig -from .management import create_default_site - class SitesConfig(AppConfig): apps: None label: str diff --git a/django-stubs-generated/contrib/sites/management.pyi b/django-stubs/contrib/sites/management.pyi similarity index 89% rename from django-stubs-generated/contrib/sites/management.pyi rename to django-stubs/contrib/sites/management.pyi index ae92d2f..175cbb4 100644 --- a/django-stubs-generated/contrib/sites/management.pyi +++ b/django-stubs/contrib/sites/management.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.apps.registry import Apps from django.contrib.sites.apps import SitesConfig diff --git a/django-stubs-generated/contrib/sites/managers.pyi b/django-stubs/contrib/sites/managers.pyi similarity index 99% rename from django-stubs-generated/contrib/sites/managers.pyi rename to django-stubs/contrib/sites/managers.pyi index 3496405..8dc2fed 100644 --- a/django-stubs-generated/contrib/sites/managers.pyi +++ b/django-stubs/contrib/sites/managers.pyi @@ -1,9 +1,10 @@ from typing import Any, List, Optional from django.core.checks.messages import Error -from django.db import models from django.db.models.query import QuerySet +from django.db import models + class CurrentSiteManager(models.Manager): creation_counter: int model: None diff --git a/django-stubs-generated/contrib/sites/middleware.pyi b/django-stubs/contrib/sites/middleware.pyi similarity index 75% rename from django-stubs-generated/contrib/sites/middleware.pyi rename to django-stubs/contrib/sites/middleware.pyi index c9075e9..61ec027 100644 --- a/django-stubs-generated/contrib/sites/middleware.pyi +++ b/django-stubs/contrib/sites/middleware.pyi @@ -1,10 +1,6 @@ -from typing import Any, Optional - from django.http.request import HttpRequest from django.utils.deprecation import MiddlewareMixin -from .shortcuts import get_current_site - class CurrentSiteMiddleware(MiddlewareMixin): get_response: None def process_request(self, request: HttpRequest) -> None: ... diff --git a/django-stubs-generated/contrib/sites/models.pyi b/django-stubs/contrib/sites/models.pyi similarity index 99% rename from django-stubs-generated/contrib/sites/models.pyi rename to django-stubs/contrib/sites/models.pyi index 5feece2..070b49b 100644 --- a/django-stubs-generated/contrib/sites/models.pyi +++ b/django-stubs/contrib/sites/models.pyi @@ -1,8 +1,9 @@ from typing import Any, Optional, Tuple, Type -from django.db import models from django.http.request import HttpRequest +from django.db import models + SITE_CACHE: Any class SiteManager(models.Manager): diff --git a/django-stubs-generated/contrib/sites/requests.pyi b/django-stubs/contrib/sites/requests.pyi similarity index 89% rename from django-stubs-generated/contrib/sites/requests.pyi rename to django-stubs/contrib/sites/requests.pyi index 10736f0..6a638b6 100644 --- a/django-stubs-generated/contrib/sites/requests.pyi +++ b/django-stubs/contrib/sites/requests.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.http.request import HttpRequest diff --git a/django-stubs-generated/contrib/sites/shortcuts.pyi b/django-stubs/contrib/sites/shortcuts.pyi similarity index 85% rename from django-stubs-generated/contrib/sites/shortcuts.pyi rename to django-stubs/contrib/sites/shortcuts.pyi index 0e4b349..6938e6f 100644 --- a/django-stubs-generated/contrib/sites/shortcuts.pyi +++ b/django-stubs/contrib/sites/shortcuts.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional, Union +from typing import Optional, Union from django.contrib.sites.models import Site from django.contrib.sites.requests import RequestSite diff --git a/django-stubs-generated/contrib/sitemaps/management/commands/__init__.pyi b/django-stubs/contrib/staticfiles/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sitemaps/management/commands/__init__.pyi rename to django-stubs/contrib/staticfiles/__init__.pyi diff --git a/django-stubs-generated/contrib/staticfiles/apps.pyi b/django-stubs/contrib/staticfiles/apps.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/apps.pyi rename to django-stubs/contrib/staticfiles/apps.pyi diff --git a/django-stubs-generated/contrib/staticfiles/checks.pyi b/django-stubs/contrib/staticfiles/checks.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/checks.pyi rename to django-stubs/contrib/staticfiles/checks.pyi diff --git a/django-stubs-generated/contrib/staticfiles/finders.pyi b/django-stubs/contrib/staticfiles/finders.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/finders.pyi rename to django-stubs/contrib/staticfiles/finders.pyi diff --git a/django-stubs-generated/contrib/staticfiles/handlers.pyi b/django-stubs/contrib/staticfiles/handlers.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/handlers.pyi rename to django-stubs/contrib/staticfiles/handlers.pyi diff --git a/django-stubs-generated/contrib/sites/__init__.pyi b/django-stubs/contrib/staticfiles/management/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/sites/__init__.pyi rename to django-stubs/contrib/staticfiles/management/__init__.pyi diff --git a/django-stubs-generated/contrib/staticfiles/__init__.pyi b/django-stubs/contrib/staticfiles/management/commands/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/__init__.pyi rename to django-stubs/contrib/staticfiles/management/commands/__init__.pyi diff --git a/django-stubs-generated/contrib/staticfiles/management/commands/collectstatic.pyi b/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/management/commands/collectstatic.pyi rename to django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi diff --git a/django-stubs-generated/contrib/staticfiles/management/commands/findstatic.pyi b/django-stubs/contrib/staticfiles/management/commands/findstatic.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/management/commands/findstatic.pyi rename to django-stubs/contrib/staticfiles/management/commands/findstatic.pyi diff --git a/django-stubs-generated/contrib/staticfiles/management/commands/runserver.pyi b/django-stubs/contrib/staticfiles/management/commands/runserver.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/management/commands/runserver.pyi rename to django-stubs/contrib/staticfiles/management/commands/runserver.pyi diff --git a/django-stubs-generated/contrib/staticfiles/storage.pyi b/django-stubs/contrib/staticfiles/storage.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/storage.pyi rename to django-stubs/contrib/staticfiles/storage.pyi diff --git a/django-stubs-generated/contrib/staticfiles/management/__init__.pyi b/django-stubs/contrib/staticfiles/templatetags/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/management/__init__.pyi rename to django-stubs/contrib/staticfiles/templatetags/__init__.pyi diff --git a/django-stubs-generated/contrib/staticfiles/templatetags/staticfiles.pyi b/django-stubs/contrib/staticfiles/templatetags/staticfiles.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/templatetags/staticfiles.pyi rename to django-stubs/contrib/staticfiles/templatetags/staticfiles.pyi diff --git a/django-stubs-generated/contrib/staticfiles/urls.pyi b/django-stubs/contrib/staticfiles/urls.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/urls.pyi rename to django-stubs/contrib/staticfiles/urls.pyi diff --git a/django-stubs-generated/contrib/staticfiles/utils.pyi b/django-stubs/contrib/staticfiles/utils.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/utils.pyi rename to django-stubs/contrib/staticfiles/utils.pyi diff --git a/django-stubs-generated/contrib/staticfiles/views.pyi b/django-stubs/contrib/staticfiles/views.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/views.pyi rename to django-stubs/contrib/staticfiles/views.pyi diff --git a/django-stubs-generated/contrib/staticfiles/management/commands/__init__.pyi b/django-stubs/contrib/syndication/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/management/commands/__init__.pyi rename to django-stubs/contrib/syndication/__init__.pyi diff --git a/django-stubs-generated/contrib/syndication/views.pyi b/django-stubs/contrib/syndication/views.pyi similarity index 100% rename from django-stubs-generated/contrib/syndication/views.pyi rename to django-stubs/contrib/syndication/views.pyi diff --git a/django-stubs-generated/dispatch/__init__.pyi b/django-stubs/dispatch/__init__.pyi similarity index 74% rename from django-stubs-generated/dispatch/__init__.pyi rename to django-stubs/dispatch/__init__.pyi index d0e979f..97080cd 100644 --- a/django-stubs-generated/dispatch/__init__.pyi +++ b/django-stubs/dispatch/__init__.pyi @@ -1 +1 @@ -from django.dispatch.dispatcher import Signal as Signal, receiver as receiver # NOQA +from django.dispatch.dispatcher import Signal as Signal, receiver as receiver diff --git a/django-stubs-generated/dispatch/dispatcher.pyi b/django-stubs/dispatch/dispatcher.pyi similarity index 74% rename from django-stubs-generated/dispatch/dispatcher.pyi rename to django-stubs/dispatch/dispatcher.pyi index 482513b..4b5c88f 100644 --- a/django-stubs-generated/dispatch/dispatcher.pyi +++ b/django-stubs/dispatch/dispatcher.pyi @@ -2,7 +2,6 @@ from typing import Any, Callable, List, Optional, Tuple, Type, Union from django.apps.config import AppConfig from django.db.models.base import Model -from django.test.testcases import SimpleTestCase NONE_ID: Any NO_RECEIVERS: Any @@ -17,18 +16,18 @@ class Signal: def connect( self, receiver: Any, - sender: Optional[Union[Type[Model], AppConfig, SimpleTestCase]] = ..., + sender: Optional[Union[Type[Model], AppConfig]] = ..., weak: bool = ..., dispatch_uid: Optional[str] = ..., ) -> None: ... def disconnect( self, receiver: Optional[Callable] = ..., - sender: Optional[Union[Type[Model], AppConfig, SimpleTestCase]] = ..., + sender: Optional[Union[Type[Model], AppConfig]] = ..., dispatch_uid: Optional[str] = ..., ) -> bool: ... def has_listeners(self, sender: Any = ...) -> bool: ... def send(self, sender: Any, **named: Any) -> List[Tuple[Callable, Optional[str]]]: ... - def send_robust(self, sender: SimpleTestCase, **named: Any) -> List[Tuple[Callable, Union[ValueError, str]]]: ... + def send_robust(self, sender: Any, **named: Any) -> List[Tuple[Callable, Union[ValueError, str]]]: ... def receiver(signal: Union[List[Signal], Signal], **kwargs: Any) -> Callable: ... diff --git a/django-stubs-generated/contrib/staticfiles/templatetags/__init__.pyi b/django-stubs/forms/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/staticfiles/templatetags/__init__.pyi rename to django-stubs/forms/__init__.pyi diff --git a/django-stubs-generated/forms/boundfield.pyi b/django-stubs/forms/boundfield.pyi similarity index 81% rename from django-stubs-generated/forms/boundfield.pyi rename to django-stubs/forms/boundfield.pyi index b0ee9ce..cc4c84f 100644 --- a/django-stubs-generated/forms/boundfield.pyi +++ b/django-stubs/forms/boundfield.pyi @@ -9,8 +9,8 @@ from django.utils.safestring import SafeText class BoundField: initial: Any - form: django.forms.forms.BaseForm = ... - field: django.forms.fields.Field = ... + form: BaseForm = ... + field: Field = ... name: str = ... html_name: str = ... html_initial_name: str = ... @@ -48,15 +48,10 @@ class BoundField: ) -> Dict[str, Union[bool, str]]: ... class BoundWidget: - parent_widget: django.forms.widgets.Widget = ... - data: Dict[str, Optional[Union[Dict[str, Union[bool, str]], int, str]]] = ... - renderer: django.forms.renderers.DjangoTemplates = ... - def __init__( - self, - parent_widget: Widget, - data: Dict[str, Optional[Union[Dict[str, Union[bool, str]], int, str]]], - renderer: DjangoTemplates, - ) -> None: ... + parent_widget: Widget = ... + data: Dict[str, Any] = ... + renderer: DjangoTemplates = ... + def __init__(self, parent_widget: Widget, data: Dict[str, Any], renderer: DjangoTemplates) -> None: ... def tag(self, wrap_label: bool = ...) -> SafeText: ... @property def template_name(self) -> str: ... diff --git a/django-stubs-generated/forms/fields.pyi b/django-stubs/forms/fields.pyi similarity index 89% rename from django-stubs-generated/forms/fields.pyi rename to django-stubs/forms/fields.pyi index 7df3693..ac7c3ec 100644 --- a/django-stubs-generated/forms/fields.pyi +++ b/django-stubs/forms/fields.pyi @@ -1,11 +1,12 @@ from collections import OrderedDict from datetime import date, datetime, time, timedelta from decimal import Decimal -from typing import Any, Callable, Dict, List, Optional, Tuple, Union +from typing import Any, Callable, Dict, List, Optional, Tuple, Union, Type from uuid import UUID from django.core.files.base import File from django.core.files.uploadedfile import SimpleUploadedFile +from django.core.validators import BaseValidator from django.db.models.fields.files import FieldFile from django.forms.boundfield import BoundField from django.forms.forms import BaseForm @@ -15,7 +16,7 @@ class Field: initial: None label: None required: bool - widget: Any = ... + widget: Input = ... hidden_widget: Any = ... default_validators: Any = ... default_error_messages: Any = ... @@ -26,7 +27,7 @@ class Field: label_suffix: None = ... localize: bool = ... error_messages: Any = ... - validators: Any = ... + validators: List[BaseValidator] = ... def __init__( self, *, @@ -67,10 +68,6 @@ class CharField(Field): localize: bool required: bool show_hidden_initial: bool - validators: List[ - Union[django.core.validators.BaseValidator, django.core.validators.ProhibitNullCharactersValidator] - ] - widget: django.forms.widgets.TextInput max_length: Optional[Union[int, str]] = ... min_length: Optional[Union[int, str]] = ... strip: bool = ... @@ -99,8 +96,6 @@ class IntegerField(Field): min_value: Optional[int] required: bool show_hidden_initial: bool - validators: List[django.core.validators.BaseValidator] - widget: django.forms.widgets.NumberInput = ... default_error_messages: Any = ... re_decimal: Any = ... def __init__(self, *, max_value: Optional[Any] = ..., min_value: Optional[Any] = ..., **kwargs: Any) -> None: ... @@ -119,8 +114,6 @@ class FloatField(IntegerField): min_value: Optional[float] required: bool show_hidden_initial: bool - validators: List[django.core.validators.BaseValidator] - widget: django.forms.widgets.NumberInput default_error_messages: Any = ... def to_python(self, value: Optional[Union[float, str]]) -> Optional[float]: ... def validate(self, value: Optional[float]) -> None: ... @@ -140,8 +133,6 @@ class DecimalField(IntegerField): min_value: Optional[Union[decimal.Decimal, int]] required: bool show_hidden_initial: bool - validators: List[Union[django.core.validators.BaseValidator, django.core.validators.DecimalValidator]] - widget: django.forms.widgets.NumberInput default_error_messages: Any = ... def __init__( self, @@ -172,8 +163,6 @@ class DateField(BaseTemporalField): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] - widget: django.forms.widgets.DateInput = ... input_formats: Any = ... default_error_messages: Any = ... def to_python(self, value: Optional[Union[date, str]]) -> Optional[date]: ... @@ -189,8 +178,6 @@ class TimeField(BaseTemporalField): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] - widget: django.forms.widgets.TimeInput = ... input_formats: Any = ... default_error_messages: Any = ... def to_python(self, value: Optional[Union[time, str]]) -> Optional[time]: ... @@ -206,8 +193,6 @@ class DateTimeField(BaseTemporalField): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] - widget: django.forms.widgets.DateTimeInput = ... input_formats: Any = ... default_error_messages: Any = ... def prepare_value(self, value: Optional[datetime]) -> Optional[datetime]: ... @@ -241,14 +226,6 @@ class RegexField(CharField): required: bool show_hidden_initial: bool strip: bool - validators: List[ - Union[ - django.core.validators.BaseValidator, - django.core.validators.ProhibitNullCharactersValidator, - django.core.validators.RegexValidator, - ] - ] - widget: django.forms.widgets.TextInput def __init__(self, regex: str, **kwargs: Any) -> None: ... regex: Any = ... @@ -266,14 +243,6 @@ class EmailField(CharField): required: bool show_hidden_initial: bool strip: bool - validators: List[ - Union[ - django.core.validators.BaseValidator, - django.core.validators.EmailValidator, - django.core.validators.ProhibitNullCharactersValidator, - ] - ] - widget: django.forms.widgets.EmailInput = ... default_validators: Any = ... def __init__(self, **kwargs: Any) -> None: ... @@ -286,7 +255,6 @@ class FileField(Field): localize: bool required: bool show_hidden_initial: bool - widget: Any = ... default_error_messages: Any = ... max_length: Optional[int] = ... allow_empty_file: bool = ... @@ -328,14 +296,6 @@ class URLField(CharField): required: bool show_hidden_initial: bool strip: bool - validators: List[ - Union[ - django.core.validators.MaxLengthValidator, - django.core.validators.ProhibitNullCharactersValidator, - django.core.validators.URLValidator, - ] - ] - widget: django.forms.widgets.URLInput = ... default_error_messages: Any = ... default_validators: Any = ... def __init__(self, **kwargs: Any) -> None: ... @@ -351,8 +311,6 @@ class BooleanField(Field): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] - widget: django.forms.widgets.CheckboxInput = ... def to_python(self, value: Optional[Union[int, str]]) -> bool: ... def validate(self, value: bool) -> None: ... def has_changed(self, initial: Optional[Union[bool, str]], data: Optional[Union[bool, str]]) -> bool: ... @@ -366,7 +324,6 @@ class NullBooleanField(BooleanField): localize: bool required: bool show_hidden_initial: bool - widget: Any = ... def to_python(self, value: Optional[Union[bool, str]]) -> Optional[bool]: ... def validate(self, value: Optional[bool]) -> None: ... @@ -385,8 +342,6 @@ class ChoiceField(Field): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] - widget: django.forms.widgets.Select = ... default_error_messages: Any = ... choices: Any = ... def __init__(self, *, choices: Any = ..., **kwargs: Any) -> None: ... @@ -421,9 +376,7 @@ class MultipleChoiceField(ChoiceField): localize: bool required: bool show_hidden_initial: bool - validators: List[Any] hidden_widget: Any = ... - widget: django.forms.widgets.SelectMultiple = ... default_error_messages: Any = ... def to_python(self, value: Optional[Union[List[Union[int, str]], Tuple, str]]) -> List[str]: ... def validate(self, value: List[str]) -> None: ... @@ -521,7 +474,6 @@ class SplitDateTimeField(MultiValueField): require_all_fields: bool required: bool show_hidden_initial: bool - widget: Any = ... hidden_widget: Any = ... default_error_messages: Any = ... def __init__( @@ -543,8 +495,6 @@ class GenericIPAddressField(CharField): required: bool show_hidden_initial: bool strip: bool - validators: List[Callable] - widget: django.forms.widgets.TextInput unpack_ipv4: bool = ... default_validators: List[Callable] = ... def __init__(self, *, protocol: str = ..., unpack_ipv4: bool = ..., **kwargs: Any) -> None: ... @@ -563,7 +513,6 @@ class SlugField(CharField): required: bool show_hidden_initial: bool strip: bool - default_validators: List[django.core.validators.RegexValidator] = ... allow_unicode: bool = ... def __init__(self, *, allow_unicode: bool = ..., **kwargs: Any) -> None: ... diff --git a/django-stubs-generated/forms/forms.pyi b/django-stubs/forms/forms.pyi similarity index 100% rename from django-stubs-generated/forms/forms.pyi rename to django-stubs/forms/forms.pyi diff --git a/django-stubs-generated/forms/formsets.pyi b/django-stubs/forms/formsets.pyi similarity index 99% rename from django-stubs-generated/forms/formsets.pyi rename to django-stubs/forms/formsets.pyi index 508c46a..89ed16a 100644 --- a/django-stubs-generated/forms/formsets.pyi +++ b/django-stubs/forms/formsets.pyi @@ -1,10 +1,11 @@ import collections from typing import Any, List, Optional, Union, Dict, Type -from django.forms import Form from django.forms.renderers import BaseRenderer from django.forms.utils import ErrorList +from django.forms import Form + class ManagementForm(Form): auto_id: Union[bool, str] cleaned_data: Dict[str, Optional[int]] diff --git a/django-stubs-generated/forms/models.pyi b/django-stubs/forms/models.pyi similarity index 95% rename from django-stubs-generated/forms/models.pyi rename to django-stubs/forms/models.pyi index 74c4e1e..a56b1c7 100644 --- a/django-stubs-generated/forms/models.pyi +++ b/django-stubs/forms/models.pyi @@ -5,8 +5,6 @@ from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Type, U from unittest.mock import MagicMock from uuid import UUID -from django.contrib.auth.forms import UserChangeForm, UserCreationForm -from django.contrib.flatpages.forms import FlatpageForm from django.core.files.uploadedfile import SimpleUploadedFile from django.db.models.base import Model from django.db.models.manager import Manager @@ -43,18 +41,16 @@ def fields_for_model( ) -> OrderedDict: ... class ModelFormOptions: - model: Optional[Type[django.db.models.base.Model]] = ... + model: Optional[Type[Model]] = ... fields: Optional[Union[List[Union[Callable, str]], Tuple, str]] = ... exclude: Optional[Union[List[Union[Callable, str]], Tuple, str]] = ... - widgets: Optional[Union[Dict[str, Type[django.forms.widgets.Input]], Dict[str, django.forms.widgets.Widget]]] = ... + widgets: Optional[Dict[str, Union[Widget, Input]]] = ... localized_fields: Optional[Union[Tuple[str], str]] = ... labels: Optional[Dict[str, str]] = ... help_texts: Optional[Dict[str, str]] = ... error_messages: Optional[Dict[str, Dict[str, str]]] = ... - field_classes: Optional[Dict[str, Type[django.forms.fields.CharField]]] = ... - def __init__( - self, options: Optional[Type[Union[UserChangeForm.Meta, UserCreationForm.Meta, FlatpageForm.Meta]]] = ... - ) -> None: ... + field_classes: Optional[Dict[str, Type[Field]]] = ... + def __init__(self, options: Optional[type] = ...) -> None: ... class ModelFormMetaclass(DeclarativeFieldsMetaclass): def __new__( diff --git a/django-stubs/forms/renderers.pyi b/django-stubs/forms/renderers.pyi new file mode 100644 index 0000000..84aba11 --- /dev/null +++ b/django-stubs/forms/renderers.pyi @@ -0,0 +1,30 @@ +from typing import Any, Dict, Union + +import django.template.backends as template_backends +from django.template import Template +from django.template.backends.base import BaseEngine + +ROOT: Any + +def get_default_renderer() -> DjangoTemplates: ... + +class BaseRenderer: + def get_template(self, template_name: str) -> Any: ... + def render(self, template_name: str, context: Dict[str, Any], request: None = ...) -> str: ... + +class EngineMixin: + def get_template( + self, template_name: str + ) -> Union[template_backends.django.Template, template_backends.jinja2.Template]: ... + def engine(self) -> BaseEngine: ... + +class DjangoTemplates(EngineMixin, BaseRenderer): + engine: template_backends.django.DjangoTemplates + backend: Any = ... + +class Jinja2(EngineMixin, BaseRenderer): + engine: template_backends.jinja2.Jinja2 + backend: Any = ... + +class TemplatesSetting(BaseRenderer): + def get_template(self, template_name: str) -> Template: ... diff --git a/django-stubs-generated/forms/utils.pyi b/django-stubs/forms/utils.pyi similarity index 85% rename from django-stubs-generated/forms/utils.pyi rename to django-stubs/forms/utils.pyi index 770abc4..98eed82 100644 --- a/django-stubs-generated/forms/utils.pyi +++ b/django-stubs/forms/utils.pyi @@ -16,13 +16,9 @@ class ErrorDict(dict): def as_text(self) -> str: ... class ErrorList(UserList, list): - data: List[Union[django.core.exceptions.ValidationError, str]] + data: List[Union[ValidationError, str]] error_class: str = ... - def __init__( - self, - initlist: Optional[Union[List[ValidationError], List[str], ErrorList]] = ..., - error_class: Optional[str] = ..., - ) -> None: ... + def __init__(self, initlist: Optional[ErrorList] = ..., error_class: Optional[str] = ...) -> None: ... def as_data(self) -> List[ValidationError]: ... def get_json_data(self, escape_html: bool = ...) -> List[Dict[str, str]]: ... def as_json(self, escape_html: bool = ...) -> str: ... diff --git a/django-stubs-generated/forms/widgets.pyi b/django-stubs/forms/widgets.pyi similarity index 80% rename from django-stubs-generated/forms/widgets.pyi rename to django-stubs/forms/widgets.pyi index 29aad48..279a062 100644 --- a/django-stubs-generated/forms/widgets.pyi +++ b/django-stubs/forms/widgets.pyi @@ -54,18 +54,7 @@ class Widget: self, name: str, value: None, attrs: Dict[str, bool] = ... ) -> Iterator[Dict[str, Optional[Union[Dict[str, bool], bool, str]]]]: ... def format_value(self, value: Any) -> Optional[str]: ... - def get_context( - self, name: str, value: Any, attrs: Optional[Dict[str, Union[bool, str]]] - ) -> Dict[ - str, - Union[ - Dict[str, Optional[Union[Dict[str, None], bool, str]]], - Dict[str, Optional[Union[Dict[str, bool], bool, str]]], - Dict[str, Union[Dict[str, Union[int, str]], List[str], bool, str]], - Dict[str, Union[Dict[str, str], List[int], bool, str]], - Dict[str, Union[Dict[str, str], bool, FieldFile, str]], - ], - ]: ... + def get_context(self, name: str, value: Any, attrs: Optional[Dict[str, Union[bool, str]]]) -> Dict[str, Any]: ... def render( self, name: str, @@ -80,14 +69,7 @@ class Widget: self, data: dict, files: Union[Dict[str, SimpleUploadedFile], MultiValueDict], name: str ) -> Any: ... def value_omitted_from_data( - self, - data: Union[ - Dict[str, Optional[Union[List[int], date, int, str]]], - Dict[str, Union[datetime, Decimal, int, str]], - QueryDict, - ], - files: Union[Dict[str, SimpleUploadedFile], MultiValueDict], - name: str, + self, data: Dict[str, Any], files: Union[Dict[str, SimpleUploadedFile], MultiValueDict], name: str ) -> bool: ... def id_for_label(self, id_: str) -> str: ... def use_required_attribute(self, initial: Any) -> bool: ... @@ -99,17 +81,7 @@ class Input(Widget): def __init__( self, attrs: Optional[Union[Dict[str, None], Dict[str, bool], Dict[str, float], Dict[str, str]]] = ... ) -> None: ... - def get_context( - self, name: str, value: Any, attrs: Optional[Dict[str, Union[bool, str]]] - ) -> Dict[ - str, - Union[ - Dict[str, Optional[Union[Dict[str, Union[int, str]], bool, str]]], - Dict[str, Union[Dict[str, str], List[int], bool, str]], - Dict[str, Union[Dict[str, str], List[str], bool, str]], - Dict[str, Union[Dict[str, str], bool, FieldFile, str]], - ], - ]: ... + def get_context(self, name: str, value: Any, attrs: Optional[Dict[str, Union[bool, str]]]) -> Dict[str, Any]: ... class TextInput(Input): attrs: Dict[str, Optional[bool]] @@ -163,13 +135,7 @@ class MultipleHiddenInput(HiddenInput): template_name: str = ... def get_context( self, name: str, value: Optional[Union[List[int], List[str]]], attrs: Optional[Dict[str, str]] - ) -> Dict[ - str, - Union[ - Dict[str, Union[Dict[str, str], List[Dict[str, Union[Dict[str, str], bool, str]]], List[int], bool, str]], - Dict[str, Union[Dict[str, str], List[Dict[str, Union[Dict[str, str], bool, str]]], List[str], bool, str]], - ], - ]: ... + ) -> Dict[str, Any]: ... def value_from_datadict( self, data: Union[Dict[str, List[str]], Dict[str, Tuple[int, ...]], MultiValueDict], @@ -319,28 +285,7 @@ class ChoiceWidget(Widget): name: str, value: Optional[Union[List[int], List[str], Tuple[str, str], int, str]], attrs: Optional[Dict[str, Union[bool, str]]], - ) -> Dict[ - str, - Dict[ - str, - Union[ - Dict[str, Union[bool, str]], - List[ - Tuple[ - Optional[str], - Union[ - List[Dict[str, Union[Dict[str, bool], bool, str]]], - List[Dict[str, Union[Dict[str, str], bool, str]]], - ], - int, - ] - ], - List[str], - bool, - str, - ], - ], - ]: ... + ) -> Dict[str, Any]: ... def id_for_label(self, id_: str, index: str = ...) -> str: ... def value_from_datadict( self, data: dict, files: Union[Dict[Any, Any], MultiValueDict], name: str @@ -349,12 +294,7 @@ class ChoiceWidget(Widget): class Select(ChoiceWidget): attrs: Dict[str, Union[bool, str]] - choices: Union[ - List[List[Union[int, str]]], - List[Tuple[datetime.time, Union[int, str]]], - django.forms.fields.CallableChoiceIterator, - django.forms.models.ModelChoiceIterator, - ] + choices: List[List[Union[int, str]]] is_required: bool input_type: str = ... template_name: str = ... @@ -367,19 +307,7 @@ class Select(ChoiceWidget): name: str, value: Optional[Union[List[int], List[str], int, str]], attrs: Optional[Dict[str, Union[bool, str]]], - ) -> Dict[ - str, - Dict[ - str, - Union[ - Dict[str, Union[bool, str]], - List[Tuple[Optional[str], List[Dict[str, Union[Dict[str, bool], Set[str], int, str]]], int]], - List[str], - bool, - str, - ], - ], - ]: ... + ) -> Dict[str, Any]: ... def use_required_attribute(self, initial: Any) -> bool: ... class NullBooleanSelect(Select): @@ -387,10 +315,7 @@ class NullBooleanSelect(Select): def __init__(self, attrs: None = ...) -> None: ... def format_value(self, value: Optional[Union[bool, str]]) -> str: ... def value_from_datadict( - self, - data: Union[Dict[str, Union[bool, str]], QueryDict], - files: Union[Dict[Any, Any], MultiValueDict], - name: str, + self, data: Union[Dict[str, Union[bool, str]], QueryDict], files: MultiValueDict, name: str ) -> Optional[bool]: ... class SelectMultiple(Select): @@ -451,42 +376,7 @@ class MultiWidget(Widget): name: str, value: Optional[Union[List[datetime], datetime, str]], attrs: Optional[Dict[str, Union[bool, str]]], - ) -> Dict[ - str, - Union[ - Dict[ - str, - Optional[ - Union[ - Dict[str, Union[bool, str]], - List[Dict[str, Optional[Union[Dict[str, Union[bool, str]], bool, str]]]], - bool, - str, - ] - ], - ], - Dict[ - str, - Union[ - Dict[Any, Any], - List[ - Dict[ - str, - Union[ - Dict[Any, Any], - List[Tuple[None, List[Dict[str, Union[Dict[str, bool], bool, str]]], int]], - List[str], - bool, - str, - ], - ] - ], - bool, - str, - ], - ], - ], - ]: ... + ) -> Dict[str, Any]: ... def id_for_label(self, id_: str) -> str: ... def value_from_datadict( self, diff --git a/django-stubs-generated/contrib/syndication/__init__.pyi b/django-stubs/middleware/__init__.pyi similarity index 100% rename from django-stubs-generated/contrib/syndication/__init__.pyi rename to django-stubs/middleware/__init__.pyi diff --git a/django-stubs-generated/middleware/cache.pyi b/django-stubs/middleware/cache.pyi similarity index 99% rename from django-stubs-generated/middleware/cache.pyi rename to django-stubs/middleware/cache.pyi index e8bd6e5..a26615f 100644 --- a/django-stubs-generated/middleware/cache.pyi +++ b/django-stubs/middleware/cache.pyi @@ -1,10 +1,11 @@ from typing import Any, Callable, Optional, Union -from django.core.cache import BaseCache from django.http.request import HttpRequest from django.http.response import HttpResponse, HttpResponseBase from django.utils.deprecation import MiddlewareMixin +from django.core.cache import BaseCache + class UpdateCacheMiddleware(MiddlewareMixin): cache_timeout: float = ... key_prefix: str = ... diff --git a/django-stubs-generated/middleware/clickjacking.pyi b/django-stubs/middleware/clickjacking.pyi similarity index 90% rename from django-stubs-generated/middleware/clickjacking.pyi rename to django-stubs/middleware/clickjacking.pyi index 4138d7a..deb8ba6 100644 --- a/django-stubs-generated/middleware/clickjacking.pyi +++ b/django-stubs/middleware/clickjacking.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any, Optional, Callable from django.http.request import HttpRequest from django.http.response import HttpResponse diff --git a/django-stubs-generated/middleware/common.pyi b/django-stubs/middleware/common.pyi similarity index 96% rename from django-stubs-generated/middleware/common.pyi rename to django-stubs/middleware/common.pyi index 4267778..bb01c44 100644 --- a/django-stubs-generated/middleware/common.pyi +++ b/django-stubs/middleware/common.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any, Optional, Callable from django.core.handlers.wsgi import WSGIRequest from django.http.request import HttpRequest diff --git a/django-stubs-generated/middleware/csrf.pyi b/django-stubs/middleware/csrf.pyi similarity index 100% rename from django-stubs-generated/middleware/csrf.pyi rename to django-stubs/middleware/csrf.pyi diff --git a/django-stubs-generated/middleware/gzip.pyi b/django-stubs/middleware/gzip.pyi similarity index 91% rename from django-stubs-generated/middleware/gzip.pyi rename to django-stubs/middleware/gzip.pyi index 3c0ed6a..4dd342f 100644 --- a/django-stubs-generated/middleware/gzip.pyi +++ b/django-stubs/middleware/gzip.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any from django.core.handlers.wsgi import WSGIRequest from django.http.response import HttpResponseBase diff --git a/django-stubs-generated/middleware/http.pyi b/django-stubs/middleware/http.pyi similarity index 92% rename from django-stubs-generated/middleware/http.pyi rename to django-stubs/middleware/http.pyi index 042324c..7a13c7d 100644 --- a/django-stubs-generated/middleware/http.pyi +++ b/django-stubs/middleware/http.pyi @@ -1,5 +1,3 @@ -from typing import Any, Optional - from django.core.handlers.wsgi import WSGIRequest from django.http.response import HttpResponseBase from django.utils.deprecation import MiddlewareMixin diff --git a/django-stubs-generated/middleware/locale.pyi b/django-stubs/middleware/locale.pyi similarity index 91% rename from django-stubs-generated/middleware/locale.pyi rename to django-stubs/middleware/locale.pyi index 4c2ffeb..3ce2fca 100644 --- a/django-stubs-generated/middleware/locale.pyi +++ b/django-stubs/middleware/locale.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional +from typing import Any, Optional, Callable from django.core.handlers.wsgi import WSGIRequest from django.http.response import HttpResponseBase diff --git a/django-stubs-generated/middleware/security.pyi b/django-stubs/middleware/security.pyi similarity index 94% rename from django-stubs-generated/middleware/security.pyi rename to django-stubs/middleware/security.pyi index 99964f2..7fbcda2 100644 --- a/django-stubs-generated/middleware/security.pyi +++ b/django-stubs/middleware/security.pyi @@ -1,4 +1,4 @@ -from typing import Any, Callable, Optional +from typing import Any, Callable, Optional, List from django.core.handlers.wsgi import WSGIRequest from django.http.response import HttpResponse, HttpResponsePermanentRedirect diff --git a/django-stubs-generated/forms/__init__.pyi b/django-stubs/template/__init__.pyi similarity index 100% rename from django-stubs-generated/forms/__init__.pyi rename to django-stubs/template/__init__.pyi diff --git a/django-stubs-generated/middleware/__init__.pyi b/django-stubs/template/backends/__init__.pyi similarity index 100% rename from django-stubs-generated/middleware/__init__.pyi rename to django-stubs/template/backends/__init__.pyi diff --git a/django-stubs-generated/template/backends/base.pyi b/django-stubs/template/backends/base.pyi similarity index 100% rename from django-stubs-generated/template/backends/base.pyi rename to django-stubs/template/backends/base.pyi diff --git a/django-stubs-generated/template/backends/django.pyi b/django-stubs/template/backends/django.pyi similarity index 100% rename from django-stubs-generated/template/backends/django.pyi rename to django-stubs/template/backends/django.pyi diff --git a/django-stubs-generated/template/backends/dummy.pyi b/django-stubs/template/backends/dummy.pyi similarity index 100% rename from django-stubs-generated/template/backends/dummy.pyi rename to django-stubs/template/backends/dummy.pyi diff --git a/django-stubs-generated/template/backends/jinja2.pyi b/django-stubs/template/backends/jinja2.pyi similarity index 100% rename from django-stubs-generated/template/backends/jinja2.pyi rename to django-stubs/template/backends/jinja2.pyi diff --git a/django-stubs-generated/template/backends/utils.pyi b/django-stubs/template/backends/utils.pyi similarity index 100% rename from django-stubs-generated/template/backends/utils.pyi rename to django-stubs/template/backends/utils.pyi diff --git a/django-stubs-generated/template/base.pyi b/django-stubs/template/base.pyi similarity index 100% rename from django-stubs-generated/template/base.pyi rename to django-stubs/template/base.pyi diff --git a/django-stubs-generated/template/context.pyi b/django-stubs/template/context.pyi similarity index 100% rename from django-stubs-generated/template/context.pyi rename to django-stubs/template/context.pyi diff --git a/django-stubs-generated/template/context_processors.pyi b/django-stubs/template/context_processors.pyi similarity index 100% rename from django-stubs-generated/template/context_processors.pyi rename to django-stubs/template/context_processors.pyi diff --git a/django-stubs-generated/template/defaultfilters.pyi b/django-stubs/template/defaultfilters.pyi similarity index 100% rename from django-stubs-generated/template/defaultfilters.pyi rename to django-stubs/template/defaultfilters.pyi diff --git a/django-stubs-generated/template/defaulttags.pyi b/django-stubs/template/defaulttags.pyi similarity index 100% rename from django-stubs-generated/template/defaulttags.pyi rename to django-stubs/template/defaulttags.pyi diff --git a/django-stubs-generated/template/engine.pyi b/django-stubs/template/engine.pyi similarity index 100% rename from django-stubs-generated/template/engine.pyi rename to django-stubs/template/engine.pyi diff --git a/django-stubs-generated/template/exceptions.pyi b/django-stubs/template/exceptions.pyi similarity index 100% rename from django-stubs-generated/template/exceptions.pyi rename to django-stubs/template/exceptions.pyi diff --git a/django-stubs-generated/template/library.pyi b/django-stubs/template/library.pyi similarity index 100% rename from django-stubs-generated/template/library.pyi rename to django-stubs/template/library.pyi diff --git a/django-stubs-generated/template/loader.pyi b/django-stubs/template/loader.pyi similarity index 100% rename from django-stubs-generated/template/loader.pyi rename to django-stubs/template/loader.pyi diff --git a/django-stubs-generated/template/loader_tags.pyi b/django-stubs/template/loader_tags.pyi similarity index 100% rename from django-stubs-generated/template/loader_tags.pyi rename to django-stubs/template/loader_tags.pyi diff --git a/django-stubs-generated/template/__init__.pyi b/django-stubs/template/loaders/__init__.pyi similarity index 100% rename from django-stubs-generated/template/__init__.pyi rename to django-stubs/template/loaders/__init__.pyi diff --git a/django-stubs-generated/template/loaders/app_directories.pyi b/django-stubs/template/loaders/app_directories.pyi similarity index 100% rename from django-stubs-generated/template/loaders/app_directories.pyi rename to django-stubs/template/loaders/app_directories.pyi diff --git a/django-stubs-generated/template/loaders/base.pyi b/django-stubs/template/loaders/base.pyi similarity index 100% rename from django-stubs-generated/template/loaders/base.pyi rename to django-stubs/template/loaders/base.pyi diff --git a/django-stubs-generated/template/loaders/cached.pyi b/django-stubs/template/loaders/cached.pyi similarity index 100% rename from django-stubs-generated/template/loaders/cached.pyi rename to django-stubs/template/loaders/cached.pyi diff --git a/django-stubs-generated/template/loaders/filesystem.pyi b/django-stubs/template/loaders/filesystem.pyi similarity index 100% rename from django-stubs-generated/template/loaders/filesystem.pyi rename to django-stubs/template/loaders/filesystem.pyi diff --git a/django-stubs-generated/template/loaders/locmem.pyi b/django-stubs/template/loaders/locmem.pyi similarity index 100% rename from django-stubs-generated/template/loaders/locmem.pyi rename to django-stubs/template/loaders/locmem.pyi diff --git a/django-stubs-generated/template/response.pyi b/django-stubs/template/response.pyi similarity index 100% rename from django-stubs-generated/template/response.pyi rename to django-stubs/template/response.pyi diff --git a/django-stubs-generated/template/smartif.pyi b/django-stubs/template/smartif.pyi similarity index 100% rename from django-stubs-generated/template/smartif.pyi rename to django-stubs/template/smartif.pyi diff --git a/django-stubs-generated/template/utils.pyi b/django-stubs/template/utils.pyi similarity index 100% rename from django-stubs-generated/template/utils.pyi rename to django-stubs/template/utils.pyi diff --git a/django-stubs-generated/template/backends/__init__.pyi b/django-stubs/templatetags/__init__.pyi similarity index 100% rename from django-stubs-generated/template/backends/__init__.pyi rename to django-stubs/templatetags/__init__.pyi diff --git a/django-stubs-generated/templatetags/cache.pyi b/django-stubs/templatetags/cache.pyi similarity index 100% rename from django-stubs-generated/templatetags/cache.pyi rename to django-stubs/templatetags/cache.pyi diff --git a/django-stubs-generated/templatetags/i18n.pyi b/django-stubs/templatetags/i18n.pyi similarity index 100% rename from django-stubs-generated/templatetags/i18n.pyi rename to django-stubs/templatetags/i18n.pyi diff --git a/django-stubs-generated/templatetags/l10n.pyi b/django-stubs/templatetags/l10n.pyi similarity index 100% rename from django-stubs-generated/templatetags/l10n.pyi rename to django-stubs/templatetags/l10n.pyi diff --git a/django-stubs-generated/templatetags/static.pyi b/django-stubs/templatetags/static.pyi similarity index 100% rename from django-stubs-generated/templatetags/static.pyi rename to django-stubs/templatetags/static.pyi diff --git a/django-stubs-generated/templatetags/tz.pyi b/django-stubs/templatetags/tz.pyi similarity index 100% rename from django-stubs-generated/templatetags/tz.pyi rename to django-stubs/templatetags/tz.pyi diff --git a/django-stubs-generated/test/__init__.pyi b/django-stubs/test/__init__.pyi similarity index 100% rename from django-stubs-generated/test/__init__.pyi rename to django-stubs/test/__init__.pyi diff --git a/django-stubs-generated/test/client.pyi b/django-stubs/test/client.pyi similarity index 100% rename from django-stubs-generated/test/client.pyi rename to django-stubs/test/client.pyi diff --git a/django-stubs-generated/test/html.pyi b/django-stubs/test/html.pyi similarity index 100% rename from django-stubs-generated/test/html.pyi rename to django-stubs/test/html.pyi diff --git a/django-stubs-generated/test/runner.pyi b/django-stubs/test/runner.pyi similarity index 100% rename from django-stubs-generated/test/runner.pyi rename to django-stubs/test/runner.pyi diff --git a/django-stubs-generated/test/selenium.pyi b/django-stubs/test/selenium.pyi similarity index 100% rename from django-stubs-generated/test/selenium.pyi rename to django-stubs/test/selenium.pyi diff --git a/django-stubs-generated/test/signals.pyi b/django-stubs/test/signals.pyi similarity index 100% rename from django-stubs-generated/test/signals.pyi rename to django-stubs/test/signals.pyi diff --git a/django-stubs-generated/test/testcases.pyi b/django-stubs/test/testcases.pyi similarity index 100% rename from django-stubs-generated/test/testcases.pyi rename to django-stubs/test/testcases.pyi diff --git a/django-stubs-generated/test/utils.pyi b/django-stubs/test/utils.pyi similarity index 100% rename from django-stubs-generated/test/utils.pyi rename to django-stubs/test/utils.pyi diff --git a/django-stubs-generated/utils/_os.pyi b/django-stubs/utils/_os.pyi similarity index 100% rename from django-stubs-generated/utils/_os.pyi rename to django-stubs/utils/_os.pyi diff --git a/django-stubs-generated/utils/archive.pyi b/django-stubs/utils/archive.pyi similarity index 100% rename from django-stubs-generated/utils/archive.pyi rename to django-stubs/utils/archive.pyi diff --git a/django-stubs-generated/utils/autoreload.pyi b/django-stubs/utils/autoreload.pyi similarity index 100% rename from django-stubs-generated/utils/autoreload.pyi rename to django-stubs/utils/autoreload.pyi diff --git a/django-stubs-generated/utils/cache.pyi b/django-stubs/utils/cache.pyi similarity index 100% rename from django-stubs-generated/utils/cache.pyi rename to django-stubs/utils/cache.pyi diff --git a/django-stubs-generated/utils/crypto.pyi b/django-stubs/utils/crypto.pyi similarity index 100% rename from django-stubs-generated/utils/crypto.pyi rename to django-stubs/utils/crypto.pyi diff --git a/django-stubs-generated/utils/dateformat.pyi b/django-stubs/utils/dateformat.pyi similarity index 88% rename from django-stubs-generated/utils/dateformat.pyi rename to django-stubs/utils/dateformat.pyi index 2124930..ffa1726 100644 --- a/django-stubs-generated/utils/dateformat.pyi +++ b/django-stubs/utils/dateformat.pyi @@ -1,6 +1,8 @@ from datetime import datetime from typing import Any, Optional, Union +from django.utils.timezone import FixedOffset + re_formatchars: Any re_escaped: Any @@ -8,8 +10,8 @@ class Formatter: def format(self, formatstr: str) -> str: ... class TimeFormat(Formatter): - data: Union[datetime.datetime, str] = ... - timezone: Optional[django.utils.timezone.FixedOffset] = ... + data: Union[datetime, str] = ... + timezone: Optional[FixedOffset] = ... def __init__(self, obj: Union[datetime, str]) -> None: ... def a(self) -> str: ... def A(self) -> str: ... @@ -29,8 +31,8 @@ class TimeFormat(Formatter): def Z(self) -> Union[int, str]: ... class DateFormat(TimeFormat): - data: Union[datetime.datetime, str] - timezone: Optional[django.utils.timezone.FixedOffset] + data: Union[datetime, str] + timezone: Optional[FixedOffset] year_days: Any = ... def b(self): ... def c(self) -> str: ... diff --git a/django-stubs-generated/utils/dateparse.pyi b/django-stubs/utils/dateparse.pyi similarity index 100% rename from django-stubs-generated/utils/dateparse.pyi rename to django-stubs/utils/dateparse.pyi diff --git a/django-stubs-generated/utils/datetime_safe.pyi b/django-stubs/utils/datetime_safe.pyi similarity index 100% rename from django-stubs-generated/utils/datetime_safe.pyi rename to django-stubs/utils/datetime_safe.pyi diff --git a/django-stubs-generated/utils/deconstruct.pyi b/django-stubs/utils/deconstruct.pyi similarity index 100% rename from django-stubs-generated/utils/deconstruct.pyi rename to django-stubs/utils/deconstruct.pyi diff --git a/django-stubs-generated/utils/decorators.pyi b/django-stubs/utils/decorators.pyi similarity index 100% rename from django-stubs-generated/utils/decorators.pyi rename to django-stubs/utils/decorators.pyi diff --git a/django-stubs-generated/utils/deprecation.pyi b/django-stubs/utils/deprecation.pyi similarity index 100% rename from django-stubs-generated/utils/deprecation.pyi rename to django-stubs/utils/deprecation.pyi diff --git a/django-stubs-generated/utils/duration.pyi b/django-stubs/utils/duration.pyi similarity index 100% rename from django-stubs-generated/utils/duration.pyi rename to django-stubs/utils/duration.pyi diff --git a/django-stubs-generated/utils/encoding.pyi b/django-stubs/utils/encoding.pyi similarity index 100% rename from django-stubs-generated/utils/encoding.pyi rename to django-stubs/utils/encoding.pyi diff --git a/django-stubs-generated/utils/feedgenerator.pyi b/django-stubs/utils/feedgenerator.pyi similarity index 100% rename from django-stubs-generated/utils/feedgenerator.pyi rename to django-stubs/utils/feedgenerator.pyi diff --git a/django-stubs-generated/utils/formats.pyi b/django-stubs/utils/formats.pyi similarity index 100% rename from django-stubs-generated/utils/formats.pyi rename to django-stubs/utils/formats.pyi diff --git a/django-stubs-generated/utils/html.pyi b/django-stubs/utils/html.pyi similarity index 100% rename from django-stubs-generated/utils/html.pyi rename to django-stubs/utils/html.pyi diff --git a/django-stubs-generated/utils/http.pyi b/django-stubs/utils/http.pyi similarity index 100% rename from django-stubs-generated/utils/http.pyi rename to django-stubs/utils/http.pyi diff --git a/django-stubs-generated/utils/inspect.pyi b/django-stubs/utils/inspect.pyi similarity index 100% rename from django-stubs-generated/utils/inspect.pyi rename to django-stubs/utils/inspect.pyi diff --git a/django-stubs-generated/utils/ipv6.pyi b/django-stubs/utils/ipv6.pyi similarity index 100% rename from django-stubs-generated/utils/ipv6.pyi rename to django-stubs/utils/ipv6.pyi diff --git a/django-stubs-generated/utils/itercompat.pyi b/django-stubs/utils/itercompat.pyi similarity index 100% rename from django-stubs-generated/utils/itercompat.pyi rename to django-stubs/utils/itercompat.pyi diff --git a/django-stubs-generated/utils/jslex.pyi b/django-stubs/utils/jslex.pyi similarity index 100% rename from django-stubs-generated/utils/jslex.pyi rename to django-stubs/utils/jslex.pyi diff --git a/django-stubs-generated/utils/log.pyi b/django-stubs/utils/log.pyi similarity index 100% rename from django-stubs-generated/utils/log.pyi rename to django-stubs/utils/log.pyi diff --git a/django-stubs-generated/utils/lorem_ipsum.pyi b/django-stubs/utils/lorem_ipsum.pyi similarity index 100% rename from django-stubs-generated/utils/lorem_ipsum.pyi rename to django-stubs/utils/lorem_ipsum.pyi diff --git a/django-stubs-generated/utils/module_loading.pyi b/django-stubs/utils/module_loading.pyi similarity index 100% rename from django-stubs-generated/utils/module_loading.pyi rename to django-stubs/utils/module_loading.pyi diff --git a/django-stubs-generated/utils/numberformat.pyi b/django-stubs/utils/numberformat.pyi similarity index 100% rename from django-stubs-generated/utils/numberformat.pyi rename to django-stubs/utils/numberformat.pyi diff --git a/django-stubs-generated/utils/regex_helper.pyi b/django-stubs/utils/regex_helper.pyi similarity index 100% rename from django-stubs-generated/utils/regex_helper.pyi rename to django-stubs/utils/regex_helper.pyi diff --git a/django-stubs-generated/utils/six.pyi b/django-stubs/utils/six.pyi similarity index 100% rename from django-stubs-generated/utils/six.pyi rename to django-stubs/utils/six.pyi diff --git a/django-stubs-generated/utils/termcolors.pyi b/django-stubs/utils/termcolors.pyi similarity index 100% rename from django-stubs-generated/utils/termcolors.pyi rename to django-stubs/utils/termcolors.pyi diff --git a/django-stubs-generated/utils/text.pyi b/django-stubs/utils/text.pyi similarity index 100% rename from django-stubs-generated/utils/text.pyi rename to django-stubs/utils/text.pyi diff --git a/django-stubs-generated/utils/timesince.pyi b/django-stubs/utils/timesince.pyi similarity index 100% rename from django-stubs-generated/utils/timesince.pyi rename to django-stubs/utils/timesince.pyi diff --git a/django-stubs-generated/utils/translation/__init__.pyi b/django-stubs/utils/translation/__init__.pyi similarity index 97% rename from django-stubs-generated/utils/translation/__init__.pyi rename to django-stubs/utils/translation/__init__.pyi index d6a5be4..755b526 100644 --- a/django-stubs-generated/utils/translation/__init__.pyi +++ b/django-stubs/utils/translation/__init__.pyi @@ -1,5 +1,6 @@ +import functools from contextlib import ContextDecorator -from typing import Any, Optional +from typing import Any, Optional, Callable from django.core.handlers.wsgi import WSGIRequest diff --git a/django-stubs-generated/utils/translation/template.pyi b/django-stubs/utils/translation/template.pyi similarity index 100% rename from django-stubs-generated/utils/translation/template.pyi rename to django-stubs/utils/translation/template.pyi diff --git a/django-stubs-generated/utils/translation/trans_null.pyi b/django-stubs/utils/translation/trans_null.pyi similarity index 100% rename from django-stubs-generated/utils/translation/trans_null.pyi rename to django-stubs/utils/translation/trans_null.pyi diff --git a/django-stubs-generated/utils/translation/trans_real.pyi b/django-stubs/utils/translation/trans_real.pyi similarity index 100% rename from django-stubs-generated/utils/translation/trans_real.pyi rename to django-stubs/utils/translation/trans_real.pyi diff --git a/django-stubs-generated/utils/version.pyi b/django-stubs/utils/version.pyi similarity index 100% rename from django-stubs-generated/utils/version.pyi rename to django-stubs/utils/version.pyi diff --git a/django-stubs-generated/utils/xmlutils.pyi b/django-stubs/utils/xmlutils.pyi similarity index 91% rename from django-stubs-generated/utils/xmlutils.pyi rename to django-stubs/utils/xmlutils.pyi index 812fc17..45d8c4c 100644 --- a/django-stubs-generated/utils/xmlutils.pyi +++ b/django-stubs/utils/xmlutils.pyi @@ -1,4 +1,4 @@ -from typing import Any, Dict, Optional +from typing import Dict, Optional from xml.sax.saxutils import XMLGenerator class UnserializableContentError(ValueError): ... diff --git a/django-stubs-generated/views/csrf.pyi b/django-stubs/views/csrf.pyi similarity index 100% rename from django-stubs-generated/views/csrf.pyi rename to django-stubs/views/csrf.pyi diff --git a/django-stubs-generated/template/loaders/__init__.pyi b/django-stubs/views/decorators/__init__.pyi similarity index 100% rename from django-stubs-generated/template/loaders/__init__.pyi rename to django-stubs/views/decorators/__init__.pyi diff --git a/django-stubs-generated/views/decorators/cache.pyi b/django-stubs/views/decorators/cache.pyi similarity index 100% rename from django-stubs-generated/views/decorators/cache.pyi rename to django-stubs/views/decorators/cache.pyi diff --git a/django-stubs-generated/views/decorators/clickjacking.pyi b/django-stubs/views/decorators/clickjacking.pyi similarity index 100% rename from django-stubs-generated/views/decorators/clickjacking.pyi rename to django-stubs/views/decorators/clickjacking.pyi diff --git a/django-stubs-generated/views/decorators/csrf.pyi b/django-stubs/views/decorators/csrf.pyi similarity index 100% rename from django-stubs-generated/views/decorators/csrf.pyi rename to django-stubs/views/decorators/csrf.pyi diff --git a/django-stubs-generated/views/decorators/debug.pyi b/django-stubs/views/decorators/debug.pyi similarity index 100% rename from django-stubs-generated/views/decorators/debug.pyi rename to django-stubs/views/decorators/debug.pyi diff --git a/django-stubs-generated/views/decorators/http.pyi b/django-stubs/views/decorators/http.pyi similarity index 100% rename from django-stubs-generated/views/decorators/http.pyi rename to django-stubs/views/decorators/http.pyi diff --git a/django-stubs-generated/views/decorators/vary.pyi b/django-stubs/views/decorators/vary.pyi similarity index 100% rename from django-stubs-generated/views/decorators/vary.pyi rename to django-stubs/views/decorators/vary.pyi diff --git a/django-stubs-generated/views/defaults.pyi b/django-stubs/views/defaults.pyi similarity index 100% rename from django-stubs-generated/views/defaults.pyi rename to django-stubs/views/defaults.pyi diff --git a/django-stubs-generated/views/i18n.pyi b/django-stubs/views/i18n.pyi similarity index 100% rename from django-stubs-generated/views/i18n.pyi rename to django-stubs/views/i18n.pyi diff --git a/django-stubs-generated/views/static.pyi b/django-stubs/views/static.pyi similarity index 100% rename from django-stubs-generated/views/static.pyi rename to django-stubs/views/static.pyi