Skip to content

Update crash issue template to use syntax highlighting in code blocks#19527

Merged
JelleZijlstra merged 2 commits into
python:masterfrom
brianschubert:issue-template-crash-highlighting
Aug 2, 2025
Merged

Update crash issue template to use syntax highlighting in code blocks#19527
JelleZijlstra merged 2 commits into
python:masterfrom
brianschubert:issue-template-crash-highlighting

Conversation

@brianschubert

Copy link
Copy Markdown
Collaborator

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.

@sterliakov sterliakov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks! Is python-traceback tag OK with non-traceback lines? Reports will often have several mypy diagnostics before Traceback (most recent call last:

@brianschubert

Copy link
Copy Markdown
Collaborator Author

Looks ok to me:

TESTFILES/SCRATCH.py:1: note: Revealed type is "int"
TESTFILES/SCRATCH.py:2: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 1.18.0+dev.ad76e1628e2d4fe52d89a80d51890bf84afad38f
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
# <snip>
  File "/home/brian/Projects/open-contrib/mypy/mypy/semanal.py", line 2215, in clean_up_bases_and_infer_type_variables
    assert isinstance(node.node, TypeVarLikeExpr)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 

@JelleZijlstra JelleZijlstra merged commit 2ce5795 into python:master Aug 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants