The type hints are incorrect because they assume all objects are implicitly nullable which is where pyright disagrees:
error: Argument of type "None" cannot be assigned to parameter "stream" of type "AudioOutputStream" in function "__init__"
"None" is incompatible with "AudioOutputStream" (reportArgumentType)
Speech SDK should use correct type hints with explicit nullability like this:
Describe the bug
pyright, the static type checker from Microsoft, complains about the default values in speech SDK methods, consider this as an example:
The type hints are incorrect because they assume all objects are implicitly nullable which is where pyright disagrees:
Speech SDK should use correct type hints with explicit nullability like this: