deepgram / deepgram-python-sdk

Official Python SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
218 stars 58 forks source link

Pyright type definitions check fails with upgrade to 3.1.5 #327

Closed noxan closed 7 months ago

noxan commented 7 months ago

What is the current behavior?

Steps to reproduce

Expected behavior

dvonthenen commented 7 months ago

Apparently, pyright doesnt like the Union of multiple return types because the classes are dynamically returned. This was done in an effort to fix this issue: https://github.com/deepgram/deepgram-python-sdk/issues/311. Will selectively revert some changes, but someone is going to be unhapp. Will need to investigate how to handle this.

dvonthenen commented 7 months ago

Fixed in this release: https://github.com/deepgram/deepgram-python-sdk/releases/tag/v3.1.6

noxan commented 7 months ago

thanks @dvonthenen :)