djangorestframework-stubs
djangorestframework-stubs copied to clipboard
Permission operands don't work
@permission_classes([IsAuthenticated|ReadOnly])
The above snippet doesn't work because the operator doesn't return permissions.BasePermission object. It returns permissions.OperandHolder. So the stub should be allowing for this type to be in the sequence.
Bump on this since it seems to still be an issue in my testing with custom permission classes (i.e. class MyPermission(BasePermission): ...).
PRs are welcome :)