Skip to content

Add comma to panic message#18048

Merged
charliermarsh merged 1 commit intomainfrom
charlie/comma
May 12, 2025
Merged

Add comma to panic message#18048
charliermarsh merged 1 commit intomainfrom
charlie/comma

Conversation

@charliermarsh
Copy link
Member

Summary

Consistent with other variants of this, separate the conditional clause.

@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

@charliermarsh charliermarsh merged commit 3ccc0ed into main May 12, 2025
34 checks passed
@charliermarsh charliermarsh deleted the charlie/comma branch May 12, 2025 15:52
@charliermarsh charliermarsh added the ty Multi-file analysis & type inference label May 12, 2025
@MichaReiser
Copy link
Member

I think my terminal incorrectly rendered the URL, including the ,. Arguably, that's a terminal bug, but it's the reason why I omitted the comma.

@charliermarsh
Copy link
Member Author

Can we render it on its own line, like we do for Ruff? Or does the diagnostic system not accommodate that?

@MichaReiser
Copy link
Member

It might look odd. Let me test this again. Worst case is that someone opens a PR with [panic],

dcreager added a commit that referenced this pull request May 12, 2025
* main:
  [ty] Apply function specialization to all overloads (#18020)
  Add comma to panic message (#18048)
  [`flake8-pie`] Mark autofix for `PIE804` as unsafe if the dictionary contains comments (#18046)
  [ty] fix infinite recursion bug in `is_disjoint_from` (#18043)
Glyphack pushed a commit to Glyphack/ruff that referenced this pull request May 21, 2025
## Summary

Consistent with other variants of this, separate the conditional clause.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants