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
beiboot preparation fixes #19413
beiboot preparation fixes #19413
Changes from all commits
22729f8
08eb083
2779f0a
22d6c1a
4530e86
a13a817
28463c7
7e94dc1
d0e7ace
33154dd
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.
This assert shouldn't be necessary.
Take a look at the definition of the
J
typevar:I feel like if you fully-expanded JsonDocument you'd get the correct result. So like
...but probably not
JsonDocument
.and if that works then probably remove the comment above it above it being a HACK. I have a bit of a better understanding of what's going on here than I did when I first wrote this.
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.
If the above fails, then just adding
str
to the front of the list ought to suffice, but then leave the comment (or adjust it). :)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.
I tried with
and
and some more variations, but it's never happy about that. I also tried your second suggestion
and while that makes this assert go away, it breaks this in
merge_patch()
:I need to leave in 10 mins for the long weekend -- if you have a better idea, feel free to force-push. Thanks!
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.
This seems to be a limitation in mypy. Let's leave well enough alone for now.