Skip to content

Commit f760fe5

Browse files
Update type ignore (#798)
1 parent 5088b97 commit f760fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiohttp_admin/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async def user_identity_dict(self, request: web.Request, identity: str) -> Ident
164164

165165
auth = self._fernet.encrypt(identity.encode("utf-8")).decode("utf-8")
166166
identity_dict: IdentityDict = {"auth": auth, "fullName": "Admin user", "permissions": {}}
167-
# https://github.com/python/mypy/issues/6462
167+
# We change type of permissions below, so need to ignore this type error.
168168
identity_dict.update(user_details) # type: ignore[typeddict-item]
169169
identity_dict["permissions"] = permissions_as_dict(user_details["permissions"])
170170

0 commit comments

Comments
 (0)