mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-22 14:32:55 +03:00
Fix tox E302 and E303
This commit is contained in:
parent
88b6200b4b
commit
9c3ea30565
|
@ -68,6 +68,7 @@ class BasePermission(metaclass=BasePermissionMetaclass):
|
||||||
"""
|
"""
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
class AND(BasePermission):
|
class AND(BasePermission):
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
self.permissions = args
|
self.permissions = args
|
||||||
|
@ -113,7 +114,6 @@ class NOT(BasePermission):
|
||||||
return not self.op1.has_object_permission(request, view, obj)
|
return not self.op1.has_object_permission(request, view, obj)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AllowAny(BasePermission):
|
class AllowAny(BasePermission):
|
||||||
"""
|
"""
|
||||||
Allow any access.
|
Allow any access.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user