Correct docstrings #10625
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 272 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.336
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10625"
general
weight: 0.35
radarhere
Preview: https://pillow--10625.org.readthedocs.build/en/10625/reference/index.html
Docstring changes only, no behaviour changes.
Wrong
Image.convert():dither=Nonegives Floyd-Steinberg, not thresholding. It'sDither.NONEthat thresholds.ImageFilter.RankFilter:size size / 2is a float and raisesTypeError, so use//.Image.frombuffer(): removes the paragraph about a warning and "bug" that no longer exist, and describes the default "raw" arguments.Image.transform(): theImageTransformHandlerexample now matches how it's called,transform(size, image,options).ImageCms.buildTransform():applyProfile()should beapplyTransform(), and the attributes areinput_mode/output_mode, notinMode/outMode.ImageFile.PyEncoder.encode_to_file(): returns 1 on success, not 0.ImageCms.createProfile(): a non-numericcolorTempraisesPyCMSError, not a non-positive one.Image.quantize():ditheris only used whenpaletteis given.ImageOps.solarize(): pixels at or above the threshold are inverted.ImageOps.fit(): an out-of-rangebleedis treated as 0, rather than not allowed.Incomplete
Image.getdata(): add.. deprecated:: 12.1.0, pointing toget_flattened_data().Image.fromarray(): mention 16-bit unsigned integer pixels.Image.save(): an unsupported format raisesKeyError.ImageFont.load(): documentSyntaxErrorandTypeError.ImageFont.load_default_imagefont(): add a docstring, since its reference entry was empty.ImageText.Text.wrap(): document theValueErrorcases, and that it modifies the object.ImageCms: return types areImageCmsProfileandImageCmsTransform.Rendering
ImageCms: the intent and direction lists rendered as a single run-on paragraph, with "(DEFAULT)" where there was no default and a reference to "the pyCMS documentation". These now refer toIntentandDirection, with the actual defaults.ImageOps.pad(): thecenteringexamples are now a list.Typos: "can cannot", "decoding logic" in
PyEncoder, "resize and crop" inpad(), "An Text",tobitmap()returning a string rather than bytes.