From 51e3710c832a7e3597393b801ccbd20e1499e579 Mon Sep 17 00:00:00 2001 From: Dan Pascu Date: Thu, 4 Jul 2024 12:34:22 +0300 Subject: [PATCH] Fixed annotation for add_remote_candidate() to allow None --- src/aioice/ice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aioice/ice.py b/src/aioice/ice.py index 45a1a75..b8c4b8c 100644 --- a/src/aioice/ice.py +++ b/src/aioice/ice.py @@ -382,7 +382,7 @@ def remote_candidates(self) -> List[Candidate]: """ return self._remote_candidates[:] - async def add_remote_candidate(self, remote_candidate: Candidate) -> None: + async def add_remote_candidate(self, remote_candidate: Optional[Candidate]) -> None: """ Add a remote candidate or signal end-of-candidates.