Skip to content

Commit 2ce5795

Browse files
Update crash issue template to use syntax highlighting in code blocks (#19527)
People often forget or don't know how to add syntax highlighting to markdown code blocks (especially for tracebacks!). Let's help them out by pre-filling the template with code blocks that have the right language hints.
1 parent 8e02657 commit 2ce5795

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/ISSUE_TEMPLATE/crash.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ labels: "crash"
1515

1616
**Traceback**
1717

18-
```
18+
```python-traceback
1919
(Insert traceback and other messages from mypy here -- use `--show-traceback`.)
2020
```
2121

@@ -25,6 +25,11 @@ labels: "crash"
2525
appreciated. We also very much appreciate it if you try to narrow the
2626
source down to a small stand-alone example.)
2727

28+
```python
29+
# Ideally, a small sample program that demonstrates the problem.
30+
# Or even better, a reproducible playground link https://mypy-play.net/ (use the "Gist" button)
31+
```
32+
2833
**Your Environment**
2934

3035
<!-- Include as many relevant details about the environment you experienced the bug in -->

0 commit comments

Comments
 (0)