async def test_not_operator_true(self):
        """Test NOT operator with permission returning True"""
        perm = TestAsyncPermission(True)
        negated = ~perm

        assert await negated.has_permission_async(None, None) is False
Test NOT operator with permission returning True
tests/test_async_permissions.py