diff --git a/src/gst_signalling/gst_consumer.py b/src/gst_signalling/gst_consumer.py index 3d1f43f..d8cddfe 100644 --- a/src/gst_signalling/gst_consumer.py +++ b/src/gst_signalling/gst_consumer.py @@ -43,7 +43,7 @@ def on_answer_created( assert promise.wait() == Gst.PromiseResult.REPLIED reply = promise.get_reply() # answer = reply["answer"] - answer = reply.get_value("answer") + answer = reply.get_value("answer") # type: ignore[union-attr] promise = Gst.Promise.new() webrtc.emit("set-local-description", answer, promise) promise.interrupt() # we don't care about the result, discard it diff --git a/src/gst_signalling/gst_producer.py b/src/gst_signalling/gst_producer.py index e7907fe..07f9e31 100644 --- a/src/gst_signalling/gst_producer.py +++ b/src/gst_signalling/gst_producer.py @@ -26,7 +26,7 @@ def on_offer_created( self.logger.debug(f"on offer created {promise} {webrtc} {session_id}") assert promise.wait() == Gst.PromiseResult.REPLIED reply = promise.get_reply() - offer = reply.get_value("offer") + offer = reply.get_value("offer") # type: ignore[union-attr] promise = Gst.Promise.new() self.logger.info("Offer created, setting local description")