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
Change warning for placeholder size to exception #1143
base: master
Are you sure you want to change the base?
Change warning for placeholder size to exception #1143
Changes from 23 commits
30e8568
f5df789
5374abb
b191839
d5acc2e
a14f1df
d18cb30
2105a37
c6b5023
28b3985
6ea93f1
da2fed7
59bae84
49d9960
3820bc7
8ae0cbd
2ebc9fc
51850fc
ac94057
b6883e2
d283da7
33d7ebf
41608db
7aa2303
c407835
3538108
7df2a58
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.
It's very strange that moving this up now causes different behavior, i.e. namely that some tests are passing now which were not passing before.
I now wonder whether the check here is actually not so correct, or maybe just incomplete.
The
_maybe_update
call below might updateself.dyn_size
. Butself.dyn_size
is also only set ifself.batch
is properly set. In caseself.batch is None
, which is totally valid,self.dyn_size
is likely also not set.What we actually want to test is: If there are any combination of
batch
andctx
where bothself
andother
are defined (viaget_for_batch_ctx
logic), and thosedyn_size
is different, then we raise this exception.I will come up with some code for 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.
Strange, my first update also did not yield the previous behavior. I am now trying again sth more.