Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Aug 15, 2024
1 parent ff8dcfb commit 78bf792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def set_resource(
) -> None:
hash_key = f"{self._hash_key(key)}:{_RESOURCE_SUFFIX}"
field, value = resource
await self.client.hset(hash_key, mapping={field: value})
await self.client.hset(hash_key, mapping={field: value}) # type: ignore[misc]

async def get_resources(self, key: UserSessionDict) -> ResourcesDict:
hash_key = f"{self._hash_key(key)}:{_RESOURCE_SUFFIX}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import re
from copy import deepcopy
from typing import Any

from aiohttp import web
from aiohttp.client import ClientSession
Expand Down Expand Up @@ -40,7 +41,7 @@
# which might still not be ready.
#
#
_STATIC_WEBSERVER_RETRY_ON_STARTUP_POLICY = {
_STATIC_WEBSERVER_RETRY_ON_STARTUP_POLICY: dict[str, Any] = {
"stop": stop_after_attempt(5),
"wait": wait_fixed(1.5),
"before": before_log(_logger, logging.WARNING),
Expand Down

0 comments on commit 78bf792

Please sign in to comment.