Skip to content

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Aug 9, 2025

Description

Type parameter defaults were added in Python 3.13.
Also improved the string representation of various TypeVar / type param related nodes.

https://peps.python.org/pep-0696
https://peps.python.org/pep-0695

@cdce8p cdce8p added this to the 4.0.0 milestone Aug 9, 2025
@cdce8p cdce8p added Enhancement ✨ Improvement to a component ast labels Aug 9, 2025
Copy link

codecov bot commented Aug 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.30%. Comparing base (4364218) to head (db0f2b7).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2797   +/-   ##
=======================================
  Coverage   93.29%   93.30%           
=======================================
  Files          91       91           
  Lines       11068    11083   +15     
=======================================
+ Hits        10326    10341   +15     
  Misses        742      742           
Flag Coverage Δ
linux 93.16% <100.00%> (+<0.01%) ⬆️
pypy 93.30% <100.00%> (+<0.01%) ⬆️
windows 93.28% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
astroid/nodes/as_string.py 97.01% <100.00%> (+0.06%) ⬆️
astroid/nodes/node_classes.py 94.97% <100.00%> (+0.01%) ⬆️
astroid/rebuilder.py 98.21% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Look great, let's wait for another reviewer's opinion before merging.

@cdce8p cdce8p requested a review from jacobtylerwalls August 10, 2025 13:27
Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Thanks!

@cdce8p cdce8p removed the request for review from jacobtylerwalls August 10, 2025 18:56
@Pierre-Sassoulas Pierre-Sassoulas merged commit 62c30c2 into pylint-dev:main Aug 10, 2025
21 checks passed
@cdce8p cdce8p deleted the type-var-defaults branch August 10, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants