Fixed new pylint warnings.

use generator in any/all()
disable not-callable warnings
disable no-member warnings
Suppressed smaller pylint warnings
Pin edx-proctoring==3.5.0
This commit is contained in:
usamasadiq
2021-02-22 12:42:26 +05:00
parent 23d87e253f
commit 96f0915b0f
44 changed files with 73 additions and 86 deletions

View File

@@ -1332,7 +1332,7 @@ def create_xblock_info(xblock, data=None, metadata=None, include_ancestor_info=F
xblock_info['staff_only_message'] = True
elif child_info and child_info['children']:
xblock_info['staff_only_message'] = all(
[child['staff_only_message'] for child in child_info['children']]
child['staff_only_message'] for child in child_info['children']
)
else:
xblock_info['staff_only_message'] = False

View File

@@ -177,7 +177,7 @@ def _course_team_user(request, course_key, email):
role_added = True
else:
return permissions_error_response
elif role.has_user(user, check_user_activation=False):
elif role.has_user(user, check_user_activation=False): # pylint: disable=no-value-for-parameter
# Remove the user from this old role:
old_roles.add(role)