Repository navigation
Conversation
…esolved workarounds
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1148 +/- ##
==========================================
+ Coverage 88.92% 88.95% +0.03%
==========================================
Files 229 229
Lines 17320 17354 +34
Branches 2204 2202 -2
==========================================
+ Hits 15402 15438 +36
+ Misses 1289 1288 -1
+ Partials 629 628 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Owner
Contributor
Author
|
Ah fun :P Thanks for letting me known. |
Closed
1 task done
meta-codesync Bot
pushed a commit
to pyrefly-org/pyrefly
that referenced
this pull request
Nov 3, 2026
…e` (#5492) Summary: While working on has2k1/plotnine#1148, I noticed that calling `pyrefly coverage check` twice gave different outcomes. This turned out to be caused by abbributes whose type typable status was inherited from a base class. This used to be done by traversing the answers MRO. But at that point, the base's field answers from another module may or may not have been evicted, which made this non-deterministic. The fix is to go through the solver instead, whiich still works after the module's data is gone. I verified that this will not cause any issues (or any different outcomes) for several projects that are using `pyrefly coverage` in CI, namely rawpy, returns, omegaconf, polars, structlog, sh, Levenshtein, argcomplete, and numpy. - [x] I am a human, and I fully understand the code I am submitting. Pull Request resolved: #5492 Test Plan: There are tests Reviewed By: stroxler Differential Revision: D129104598 fbshipit-source-id: 759de0643e326dc9a48963c4e1f7dfd705d00f50
meta-codesync Bot
pushed a commit
to pyrefly-org/pyrefly
that referenced
this pull request
Nov 5, 2026
…e` (#5492) Summary: While working on has2k1/plotnine#1148, I noticed that calling `pyrefly coverage check` twice gave different outcomes. This turned out to be caused by abbributes whose type typable status was inherited from a base class. This used to be done by traversing the answers MRO. But at that point, the base's field answers from another module may or may not have been evicted, which made this non-deterministic. The fix is to go through the solver instead, whiich still works after the module's data is gone. I verified that this will not cause any issues (or any different outcomes) for several projects that are using `pyrefly coverage` in CI, namely rawpy, returns, omegaconf, polars, structlog, sh, Levenshtein, argcomplete, and numpy. - [x] I am a human, and I fully understand the code I am submitting. Pull Request resolved: #5492 Test Plan: There are tests Reviewed By: stroxler Differential Revision: D129104598 fbshipit-source-id: 5b0c233389939f7ade24d462905cb201c067e080
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.
Like #1146 and #1147, this improves public type coverage to 100% for all submodules of
plotnine.stats.To avoid a bunch of false positive Pyright errors, I also added scipy-stubs as a typing dev dependency; hope that's ok.
And in case you care; I wrote everything here myself, and I had AI review everything before making this PR.