Repository navigation
Conversation
Contributor
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 98.60%. The percentage of expected errors that received a diagnostic held steady at 98.86%. The number of fully passing files held steady at 137/146. Results for 39b8b44 · Workflow run |
Contributor
Memory usage reportSummary
Significant changesClick to expand detailed breakdowntrio
Results for 39b8b44 · Workflow run |
Contributor
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
type-assertion-failure |
0 | 18 | 2 |
| Total | 0 | 18 | 2 |
Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.
Raw diff (20 changes)
scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/stats/test_kde.pyi:26:1 error[type-assertion-failure] Type `gaussian_kde[float64 | (Any & Top[number[Any, complex]]) | (Any & numpy.bool[builtins.bool])]` does not match asserted type `gaussian_kde[float64]`
+ tests/stats/test_kde.pyi:26:1 error[type-assertion-failure] Type `gaussian_kde[float64 | Any]` does not match asserted type `gaussian_kde[float64]`
- tests/stats/test_kde.pyi:35:1 error[type-assertion-failure] Type `gaussian_kde[float64 | (Any & Top[number[Any, complex]]) | (Any & numpy.bool[builtins.bool])]` does not match asserted type `gaussian_kde[float64]`
+ tests/stats/test_kde.pyi:35:1 error[type-assertion-failure] Type `gaussian_kde[float64 | Any]` does not match asserted type `gaussian_kde[float64]`
- tests/stats/test_new_distributions.pyi:70:1 error[type-assertion-failure] Type `Uniform[tuple[()], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[()], float64 | Any]`
- tests/stats/test_new_distributions.pyi:71:1 error[type-assertion-failure] Type `Uniform[tuple[int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:72:1 error[type-assertion-failure] Type `Uniform[tuple[int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:73:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:74:1 error[type-assertion-failure] Type `Uniform[tuple[int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:75:1 error[type-assertion-failure] Type `Uniform[tuple[int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:76:1 error[type-assertion-failure] Type `Uniform[tuple[int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:77:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:78:1 error[type-assertion-failure] Type `Uniform[tuple[int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:79:1 error[type-assertion-failure] Type `Uniform[tuple[int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:80:1 error[type-assertion-failure] Type `Uniform[tuple[int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:81:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:82:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:83:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:84:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:85:1 error[type-assertion-failure] Type `Uniform[tuple[int, int, int], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[tuple[int, int, int], float64 | Any]`
- tests/stats/test_new_distributions.pyi:86:1 error[type-assertion-failure] Type `Uniform[tuple[int, *tuple[Any, ...]], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[AtLeast1D[Any], float64 | Any]`
- tests/stats/test_new_distributions.pyi:87:1 error[type-assertion-failure] Type `Uniform[tuple[int, *tuple[Any, ...]], float64 | (Any & Top[floating[Any]])]` does not match asserted type `Uniform[AtLeast1D[Any], float64 | Any]`Full report with detailed diff · Timing results
Results for 39b8b44 · Workflow run
This branch was successfully 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.
A constructor with
self: Out[bool | None]produces an instance that can returnNone. Previously, assigningOut()to a variable of typeOut[bool]silently narrowed the result. ty now reportsinvalid-assignmentfor both the covariant and mixed-variance examples in astral-sh/ty#4977.When inferring a specialization from
actual ≤ formal, a type variable on the actual side receives an upper bound. For a bare constructor, an explicit initializer receiver also determines the direction of inference. With covariantOut, inferring fromOut[bool | None]toOut[T]supplies the lower boundbool | None ≤ T. The assignment requiresT ≤ bool, so no specialization satisfies both. Explicit specializations still undergo the usual receiver check.The second commit removes the fallback that recovered constructor type arguments from the specialized first parameter. The inferred return specialization now carries those arguments directly. One existing variadic constructor test changes from
WithParamSpec[Any]toWithParamSpec[str | None | Any].Alternative to #30179 and #30270. Fixes astral-sh/ty#4977.