Skip to content

Commit

Permalink
enhancement #42: fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Danieau committed Jun 26, 2024
1 parent 6a74619 commit 24a2eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gst_signalling/gst_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gst_signalling/gst_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 24a2eab

Please sign in to comment.