mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Remove dumbass __all__ variables
This commit is contained in:
parent
87dae4d854
commit
7efc6e8205
|
@ -26,17 +26,6 @@ import decimal
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
'BaseParser',
|
|
||||||
'JSONParser',
|
|
||||||
'PlainTextParser',
|
|
||||||
'FormParser',
|
|
||||||
'MultiPartParser',
|
|
||||||
'YAMLParser',
|
|
||||||
'XMLParser'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class DataAndFiles(object):
|
class DataAndFiles(object):
|
||||||
def __init__(self, data, files):
|
def __init__(self, data, files):
|
||||||
self.data = data
|
self.data = data
|
||||||
|
|
|
@ -5,15 +5,6 @@ for checking if a request passes a certain set of constraints.
|
||||||
Permission behavior is provided by mixing the :class:`mixins.PermissionsMixin` class into a :class:`View` class.
|
Permission behavior is provided by mixing the :class:`mixins.PermissionsMixin` class into a :class:`View` class.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
'BasePermission',
|
|
||||||
'FullAnonAccess',
|
|
||||||
'IsAuthenticated',
|
|
||||||
'IsAdminUser',
|
|
||||||
'IsUserOrIsAnonReadOnly',
|
|
||||||
'PerUserThrottling',
|
|
||||||
'PerViewThrottling',
|
|
||||||
)
|
|
||||||
|
|
||||||
SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
|
SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
|
||||||
|
|
||||||
|
|
|
@ -21,19 +21,6 @@ from rest_framework.fields import FloatField, IntegerField, DateTimeField, DateF
|
||||||
import string
|
import string
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
'BaseRenderer',
|
|
||||||
'TemplateRenderer',
|
|
||||||
'JSONRenderer',
|
|
||||||
'JSONPRenderer',
|
|
||||||
'DocumentingHTMLRenderer',
|
|
||||||
'DocumentingXHTMLRenderer',
|
|
||||||
'DocumentingPlainTextRenderer',
|
|
||||||
'XMLRenderer',
|
|
||||||
'YAMLRenderer'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class BaseRenderer(object):
|
class BaseRenderer(object):
|
||||||
"""
|
"""
|
||||||
All renderers must extend this class, set the :attr:`media_type` attribute,
|
All renderers must extend this class, set the :attr:`media_type` attribute,
|
||||||
|
|
|
@ -16,9 +16,6 @@ from rest_framework.settings import api_settings
|
||||||
from rest_framework.utils.mediatypes import is_form_media_type
|
from rest_framework.utils.mediatypes import is_form_media_type
|
||||||
|
|
||||||
|
|
||||||
__all__ = ('Request',)
|
|
||||||
|
|
||||||
|
|
||||||
class Empty(object):
|
class Empty(object):
|
||||||
"""
|
"""
|
||||||
Placeholder for unset attributes.
|
Placeholder for unset attributes.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user