mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-19 21:11:04 +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
|
||||
|
||||
|
||||
class AND(BasePermission):
|
||||
def __init__(self, *args):
|
||||
self.permissions = args
|
||||
|
@ -113,7 +114,6 @@ class NOT(BasePermission):
|
|||
return not self.op1.has_object_permission(request, view, obj)
|
||||
|
||||
|
||||
|
||||
class AllowAny(BasePermission):
|
||||
"""
|
||||
Allow any access.
|
||||
|
|
Loading…
Reference in New Issue
Block a user