Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ServiceBus dict-representation acceptance and kwarg-update functionality #14807
ServiceBus dict-representation acceptance and kwarg-update functionality #14807
Changes from 29 commits
3f05de7
488ac14
0cc38d2
4bde81c
fe6fcdc
b65f309
30d6948
d6686f1
ea060e2
0f9fc56
34e41eb
ff63098
260b940
881d13d
9462f22
e394824
ac17178
a81445d
cc0cdd4
073670e
2c1fe1e
0f7b1b4
4d20f93
3f60783
c8e20a3
97d52b4
5b787d4
eef0308
c8bfd20
315b093
5e61e23
a23aecd
49e25bb
ee67888
27f40bd
a38c54f
f145073
803b142
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did typing need to be ignored here, but not line 315?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It results in the following mypy error:
Incompatible types in assignment (expression has type "Union[ServiceBusMessage, List[ServiceBusMessage], ServiceBusMessageBatch]", variable has type "Union[ServiceBusMessage, List[ServiceBusMessage]]")
.Since
schedule_messages
doesn't accept SBMessageBatch, reassigningmessages
to the result ofcreate_messages_from_dicts_if_needed
(which accepts all 3) leads to this error.send_messages
doesn't do this because it accepts all 3, so reassigningmessage
doesn't lead to incompatible types.