Skip to content

Commit bd770aa

Browse files
committed
type: fix broken types in dependencies
aiosignal 1.4.0 has been released including feature aio-libs/aiosignal#699 However, aiohttp still uses old types which were not merged as well as were not even implemented (the closest is aio-libs/aiohttp#11160 and related issue aio-libs/aiohttp#11036, whoever it still doesn't change signatures for _AppSignal) Let's just mark those calls as ignore
1 parent 6abe35e commit bd770aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ahriman/web/web.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _create_socket(configuration: Configuration, application: Application) -> so
7272
async def remove_socket(_: Application) -> None:
7373
unix_socket.unlink(missing_ok=True)
7474

75-
application.on_shutdown.append(remove_socket)
75+
application.on_shutdown.append(remove_socket) # type: ignore[arg-type]
7676

7777
return sock
7878

@@ -142,8 +142,8 @@ def setup_server(configuration: Configuration, spawner: Spawn, repositories: lis
142142
InitializeError: if no repositories set
143143
"""
144144
application = Application(logger=logging.getLogger(__name__))
145-
application.on_shutdown.append(_on_shutdown)
146-
application.on_startup.append(_on_startup)
145+
application.on_shutdown.append(_on_shutdown) # type: ignore[arg-type]
146+
application.on_startup.append(_on_startup) # type: ignore[arg-type]
147147

148148
application.middlewares.append(normalize_path_middleware(append_slash=False, remove_slash=True))
149149
application.middlewares.append(exception_handler(application.logger))

0 commit comments

Comments
 (0)