From 81db7c6194e3460f47fca03abb448ef13f1b4b36 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Mon, 28 Jul 2025 19:21:15 -0400 Subject: [PATCH 1/2] Add language hint to traceback code block in crash issue template --- .github/ISSUE_TEMPLATE/crash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/crash.md b/.github/ISSUE_TEMPLATE/crash.md index fed16a8d28ac..b7359c5c1f77 100644 --- a/.github/ISSUE_TEMPLATE/crash.md +++ b/.github/ISSUE_TEMPLATE/crash.md @@ -15,7 +15,7 @@ labels: "crash" **Traceback** -``` +```python-traceback (Insert traceback and other messages from mypy here -- use `--show-traceback`.) ``` From 063c255e45fa8006b8ac2820c88123e6b75ac094 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Mon, 28 Jul 2025 19:22:15 -0400 Subject: [PATCH 2/2] Copy "To Reproduce" python block from bug template --- .github/ISSUE_TEMPLATE/crash.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/crash.md b/.github/ISSUE_TEMPLATE/crash.md index b7359c5c1f77..ea82a9a28642 100644 --- a/.github/ISSUE_TEMPLATE/crash.md +++ b/.github/ISSUE_TEMPLATE/crash.md @@ -25,6 +25,11 @@ labels: "crash" appreciated. We also very much appreciate it if you try to narrow the source down to a small stand-alone example.) +```python +# Ideally, a small sample program that demonstrates the problem. +# Or even better, a reproducible playground link https://mypy-play.net/ (use the "Gist" button) +``` + **Your Environment**