Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions template.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@
"3.9": {
"reasons": """
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-310">use <code>match</code> statement and write union types as <code>X | Y</code></a></li>
<li><a href="https://docs.python.org/3/whatsnew/3.9.html">And more!</a></li>
<li><a href="https://docs.python.org/3/whatsnew/3.10.html">And more!</a></li>
Copy link
Owner

Choose a reason for hiding this comment

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

Good find!

Rather than just fixing, as I'll probably make the same mistake in the future, can we futureproof this via templating?

For example for all of these:

Suggested change
<li><a href="https://docs.python.org/3/whatsnew/3.10.html">And more!</a></li>
<li><a href="https://docs.python.org/3/whatsnew/{{next_version}}.html">And more!</a></li>

And then check it's replaced somewhere below.

Copy link
Contributor Author

@mayeut mayeut Nov 29, 2025

Choose a reason for hiding this comment

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

Rather than just fixing, as I'll probably make the same mistake in the future, can we futureproof this via templating?

Indeed that would be better but I only have time (at least for now) to contribute this very small fix rather than the proposed future proof templating option.

Copy link
Owner

Choose a reason for hiding this comment

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

Okay, thanks for the fix!

Copy link
Owner

Choose a reason for hiding this comment

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

(Templated in 7de7b99)

""" # noqa: E501
},
"3.10": {
"reasons": """
<li><a href="https://github.com/jugmac00/python-version-cheat-sheet#python-311"><code>tomllib</code> in the stdlib, exception groups and except*</a></li>
<li><a href="https://docs.python.org/3/whatsnew/3.10.html">And more!</a></li>
<li><a href="https://docs.python.org/3/whatsnew/3.11.html">And more!</a></li>
""" # noqa: E501
},
}
Expand Down