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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user