PY-76629: Get rid of django skeletons

GitOrigin-RevId: 3554062045a5226a95720ae3577af2313a8ce5ff
This commit is contained in:
Ilia Zakoulov
2024-10-10 21:56:39 +02:00
committed by intellij-monorepo-bot
parent 4e6eefa61e
commit 6439b63a2d
13 changed files with 0 additions and 114 deletions

View File

@@ -1 +0,0 @@
__author__ = 'Ilya.Kazakevich'

View File

@@ -1,3 +0,0 @@
from django.core.mail import EmailMessage
# https://docs.djangoproject.com/en/1.10/topics/testing/tools/#django.core.mail.django.core.mail.outbox
outbox = [EmailMessage()]

View File

@@ -1 +0,0 @@
__author__ = 'Ilya.Kazakevich'

View File

@@ -1,16 +0,0 @@
"""
QuerySet is parametrized with model object
"""
class QuerySet(object):
def __init__(self, model=None, query=None, using=None, hints=None):
"""
:rtype: django.db.models.query.QuerySet[T]
"""
pass
def __iter__(self):
"""
:rtype: collections.Iterator[T]
"""
pass

View File

@@ -1,22 +0,0 @@
from django.forms.boundfield import BoundField
class BaseForm(object):
"""
This is the main implementation of all the Form logic. Note that this
class is different than Form. See the comments by the Form class for more
information. Any improvements to the form API should be made to *this*
class, not to the Form class.
"""
def __iter__(self):
"""
:rtype: collections.Iterator[BoundField]
"""
pass
def __getitem__(self, index):
"""
:rtype: BoundField
"""
pass

View File

@@ -1,28 +0,0 @@
# TODO: Commit to separate repositoruy
from django.forms import BaseForm
class BaseFormSet(object):
"""
A collection of instances of the same Form class.
"""
def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
initial=None, error_class=ErrorList, form_kwargs=None):
"""
:rtype: BaseFormSet[T <= BaseForm]
"""
def __iter__(self):
"""
:rtype: collections.Iterator[T]
"""
pass
def __getitem__(self, index):
"""
:rtype: T
"""
pass

View File

@@ -1,33 +0,0 @@
# TODO: Commit to separate repositoruy
from django.forms.formsets import BaseFormSet
class BaseModelFormSet(BaseFormSet):
"""
A ``FormSet`` for editing a queryset and/or adding new objects to it.
"""
model = None
def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
queryset=None, **kwargs):
"""
:rtype: BaseModelFormSet[T <= BaseForm]
"""
self.queryset = queryset
self.initial_extra = kwargs.pop('initial', None)
defaults = {'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix}
defaults.update(kwargs)
super(BaseModelFormSet, self).__init__(**defaults)
def __iter__(self):
"""
:rtype: collections.Iterator[T]
"""
pass
def __getitem__(self, index):
"""
:rtype: T
"""
pass

View File

@@ -1,10 +0,0 @@
# coding=utf-8
from django.core.handlers.wsgi import WSGIRequest
class View(object):
def __init__(self, *args, **kwargs):
self.request = WSGIRequest() if False else None
self.args = list()
self.kwargs = dict()