diff --git a/src/peerjs/peer.py b/src/peerjs/peer.py index 3011b38..beebd8b 100644 --- a/src/peerjs/peer.py +++ b/src/peerjs/peer.py @@ -4,7 +4,7 @@ # from websockets import WebSocket, ConnectionClosed import asyncio import logging -from dataclasses import dataclass +from dataclasses import dataclass, field from typing import Any, List import traceback @@ -49,7 +49,7 @@ class PeerOptions: path: str = "/" key: str = PEER_DEFAULT_KEY token: str = None - config: Any = util.defaultConfig + config: Any = field(default_factory=lambda: util.defaultConfig) secure: bool = False pingInterval: int = 5 # ping to signaling server in seconds diff --git a/src/setup.cfg b/src/setup.cfg index 890eaf9..c271aba 100644 --- a/src/setup.cfg +++ b/src/setup.cfg @@ -21,7 +21,7 @@ classifiers = packages = find_namespace: python_requires = >=3.7 install_requires = - av>=8.0,<10.1 + av>=8.0 aiortc>=0.9 websockets>=8.1 aiohttp>=3.6