From d5e5c6f9344b76c62cac247980119901839c86f8 Mon Sep 17 00:00:00 2001 From: James Thornton Date: Wed, 31 Jan 2024 08:32:03 -0600 Subject: [PATCH] fixes issues 65 and 66 (#68) * fixes issues 65 and 66 * Removes src/README.md Applies to aiortc.version '1.6.0' av.version '11.0.0' --------- Co-authored-by: James Thornton --- src/peerjs/peer.py | 4 ++-- src/setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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