Open richardpark-msft opened 7 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @EldertGrootenboer.
Thank you for the feedback @richardpark-msft . We will investigate and get back to you asap.
(it looks like this technique is used in Event Grid too, so I suppose the overall issue is really about the pattern itself)
Describe the bug
The signature (in intellisense) for
ServiceBusSender.send_messages
looks like this, currently:It wasn't clear to me what I could actually pass here because 'MessageTypes' isn't expandable in the intellisense tooltip. I ended up clicking through to the source code for send_messages, then once again on the Union["MessageTypes"] definition where I could see the expanded list.
It's not horrible, but I think the goal here to save me from having to do that.
Side note - doc comment mismatch
The doc comment does actually list out some of the types so I could use that. It's not super pleasant because there's no formatting in that block of text at all.
I also noticed the signatures don't quite match the doc comment:
However, the full list has Mapping[str,Any] and an Iterable[Mapping] as well.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Would it be possible to split the Union apart and list the individual types at the send_messages function?
If that's too many types in the signature perhaps you could group them, logically?
If this is unfixable that's not a huge deal. Just something I noticed when I was trying things out.
Screenshots
Additional context