Skip to content

Commit

Permalink
ignore few type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petracihalova committed Feb 9, 2024
1 parent 8bb7621 commit c3da32c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rbac/management/group/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ def user_has_permission_act_on_service_account(self, user: User, service_account
is_user_owner = user.username == owner

# Check if the user has the "User Access administrator" permission. Leaving the RAW query here
username: str = user.username
username: str = user.username # type: ignore
query = (
"SELECT EXISTS ( "
"SELECT "
Expand Down
4 changes: 2 additions & 2 deletions rbac/management/principal/it_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ def _merge_principals_it_service_accounts(
sa_principal = service_account_principals[it_service_account["clientID"]]

if username_only and username_only == "true":
service_accounts.append({"username": sa_principal.username})
service_accounts.append({"username": sa_principal.username}) # type: ignore
else:
# Get the principal's username from the database and set it in the response for the user.
it_service_account["username"] = sa_principal.username
it_service_account["username"] = sa_principal.username # type: ignore

service_accounts.append(it_service_account)
# If we cannot find a requested service account to IT in the database, we simply
Expand Down

0 comments on commit c3da32c

Please sign in to comment.