Skip to content

Conversation

@AlexWaygood
Copy link
Member

The debug representation isn't as useful as calling .display(db), but it's still kind-of annoying when dbg!() calls don't compile locally due to the compiler not being able to guarantee that an object of type impl Constraints implements Debug

The debug representation isn't as useful as calling `.display(db)`, but it's still kind-of annoying when `dbg!()` calls don't compile locally due to the compiler not being able to guarantee that an object of type `impl Constraints` implements `Debug`
@AlexWaygood AlexWaygood added internal An internal refactor or improvement ty Multi-file analysis & type inference labels Sep 11, 2025
@github-actions
Copy link
Contributor

Diagnostic diff on typing conformance tests

No changes detected when running ty on typing conformance tests ✅

@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅
No memory usage changes detected ✅

@AlexWaygood AlexWaygood merged commit 89f1746 into main Sep 11, 2025
38 checks passed
@AlexWaygood AlexWaygood deleted the alex/contraints-dbg branch September 11, 2025 13:34
dcreager added a commit that referenced this pull request Sep 11, 2025
* origin/main:
  [ty] Minor fixes to `Protocol` tests (#20347)
  [ty] use Type::Divergent to avoid panic in infinitely-nested-tuple implicit attribute (#20333)
  [ty] Require that implementors of `Constraints` also implement `Debug` (#20348)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants