Repository navigation
Conversation
…ated Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bool and float values such as max_items=1.5 passed _page_limits or failed later inside range(). Reject them with the same ValueError. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t reviews Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add
iter_pull_request_reviewsto the sync and async clientslist_pull_request_reviewsreturns a paginatedReviewPage(cursor + limit), but onlylist_reviewshas an iterator (iter_reviews). Callers who want every review of one pull request have to hand-write the cursor loop, including the cycle and bound checks.What changed
ProoflineClient.iter_pull_request_reviewsandAsyncProoflineClient.iter_pull_request_reviewsmirroriter_reviews: samepage_size/max_pages/max_itemsbounds and the same refusals (cursor cycles, missing continuation cursor, bound exceeded). They take the samefiltersaslist_pull_request_reviews._iter_start, used by bothiter_reviewsand the new iterator, in both clients._page_limitsnow requires real ints forpage_size,max_pagesandmax_items. Before,max_items=1.5passed validation and the item cap could never trigger, andmax_pages=2.5passed validation and then failed with aTypeErrorinsiderange(). Now both raise the existingValueError. This also applies toiter_reviews.proofline/_generated/.Tests
Sync and async tests in
tests/test_http.pycover:filtersdict not being modified (full-dict comparison)max_pagesandmax_itemscapsFull suite passes locally (262).
ruff check,ruff format --checkandmypy proofline/client.pyare clean.Review
I ran Proofline on this change in a separate test org (
sarthak-proofline-test/sdk-test#1). Run 2 flagged the README overstating "reads every review", fractionalmax_items, fractionalmax_pages, and three weak test assertions. All were valid, and the fixes above come from them. Later runs narrowed to two README wording issues and finally no findings.