Skip to content

Commit 2a80e57

Browse files
committed
Fix AppService log parameter type
1 parent 6da8e07 commit 2a80e57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mautrix_appservice/appservice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
# Partly based on github.com/Cadair/python-appservice-framework (MIT license)
1919
from contextlib import contextmanager
20-
from typing import Optional, Callable, Awaitable
20+
from typing import Optional, Callable, Awaitable, Union
2121
from aiohttp import web
2222
import aiohttp
2323
import asyncio
@@ -33,7 +33,7 @@
3333
class AppService:
3434
def __init__(self, server: str, domain: str, as_token: str, hs_token: str, bot_localpart: str,
3535
loop: Optional[asyncio.AbstractEventLoop] = None,
36-
log: Optional[logging.Logger] = None, verify_ssl: bool = True,
36+
log: Optional[Union[logging.Logger, str]] = None, verify_ssl: bool = True,
3737
query_user: QueryFunc = None, query_alias: QueryFunc = None):
3838
self.server = server
3939
self.domain = domain

0 commit comments

Comments
 (0)