Question about the MessageMeta.to_dict()
function return type annotated as Message
#489
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Currently calling
Message.to_dict(my_message)
and it is correctly returning a dictionary. However the my type checker is throwing errors downstream because it thinks it is a Message object instead of a python dict.After looking through the source i found that the
to_dict
return type annotation is a Message:However, the
to_json
method it is correctly typed as a str:Wondering if this is the intended implementation?
The text was updated successfully, but these errors were encountered: