Skip to content

Stabilize UP043 for stub files on any Python version#22978

Merged
ntBre merged 2 commits intobrent/0.15.0from
brent/unnecessary_default_type_args_stubs-0.15.0
Jan 30, 2026
Merged

Stabilize UP043 for stub files on any Python version#22978
ntBre merged 2 commits intobrent/0.15.0from
brent/unnecessary_default_type_args_stubs-0.15.0

Conversation

@ntBre
Copy link
Contributor

@ntBre ntBre commented Jan 30, 2026

Added in #20027

@ntBre ntBre added this to the v0.15 milestone Jan 30, 2026
@ntBre ntBre added the rule Implementing or modifying a lint rule label Jan 30, 2026
@ntBre ntBre requested review from amyreese and dylwil3 January 30, 2026 15:25
@astral-sh-bot
Copy link

astral-sh-bot bot commented Jan 30, 2026

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+250 -0 violations, +0 -0 fixes in 1 projects; 54 projects unchanged)

python/typeshed (+250 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --no-fix --output-format concise --no-preview --select E,F,FA,I,PYI,RUF,UP,W

+ stdlib/argparse.pyi:344:60: UP043 [*] Unnecessary default type arguments
+ stdlib/codecs.pyi:199:83: UP043 [*] Unnecessary default type arguments
+ stdlib/codecs.pyi:200:85: UP043 [*] Unnecessary default type arguments
+ stdlib/concurrent/futures/process.pyi:100:53: UP043 [*] Unnecessary default type arguments
+ stdlib/email/message.pyi:133:23: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_except.pyi:9:42: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_import.pyi:8:32: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_imports.pyi:11:35: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_metaclass.pyi:11:29: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_renames.pyi:10:24: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/fixes/fix_urllib.pyi:8:24: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/refactor.pyi:72:10: UP043 [*] Unnecessary default type arguments
+ stdlib/lib2to3/refactor.pyi:73:63: UP043 [*] Unnecessary default type arguments
+ stdlib/pathlib/__init__.pyi:192:80: UP043 [*] Unnecessary default type arguments
+ stdlib/pathlib/__init__.pyi:193:81: UP043 [*] Unnecessary default type arguments
+ stdlib/pathlib/__init__.pyi:195:41: UP043 [*] Unnecessary default type arguments
+ stdlib/pathlib/__init__.pyi:196:42: UP043 [*] Unnecessary default type arguments
+ stdlib/pathlib/__init__.pyi:211:26: UP043 [*] Unnecessary default type arguments
+ stdlib/sqlite3/__init__.pyi:368:61: UP043 [*] Unnecessary default type arguments
+ stdlib/sqlite3/__init__.pyi:370:31: UP043 [*] Unnecessary default type arguments
+ stdlib/tokenize.pyi:154:60: UP043 [*] Unnecessary default type arguments
+ stdlib/tokenize.pyi:155:53: UP043 [*] Unnecessary default type arguments
+ stdlib/traceback.pyi:114:90: UP043 [*] Unnecessary default type arguments
+ stdlib/traceback.pyi:235:96: UP043 [*] Unnecessary default type arguments
+ stdlib/traceback.pyi:237:52: UP043 [*] Unnecessary default type arguments
+ stdlib/traceback.pyi:240:90: UP043 [*] Unnecessary default type arguments
+ stdlib/traceback.pyi:242:44: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementPath.pyi:11:72: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementPath.pyi:14:80: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementPath.pyi:35:90: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementTree.pyi:109:47: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementTree.pyi:113:80: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementTree.pyi:114:27: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementTree.pyi:162:47: UP043 [*] Unnecessary default type arguments
+ stdlib/xml/etree/ElementTree.pyi:172:80: UP043 [*] Unnecessary default type arguments
+ stubs/Authlib/authlib/integrations/httpx_client/oauth1_client.pyi:15:47: UP043 [*] Unnecessary default type arguments
+ stubs/Authlib/authlib/integrations/httpx_client/oauth2_client.pyi:19:47: UP043 [*] Unnecessary default type arguments
+ stubs/Authlib/authlib/integrations/httpx_client/oauth2_client.pyi:24:47: UP043 [*] Unnecessary default type arguments
+ stubs/JACK-Client/jack/__init__.pyi:240:39: UP043 [*] Unnecessary default type arguments
+ stubs/PyScreeze/pyscreeze/__init__.pyi:111:6: UP043 [*] Unnecessary default type arguments
+ stubs/PyScreeze/pyscreeze/__init__.pyi:123:6: UP043 [*] Unnecessary default type arguments
+ stubs/PyScreeze/pyscreeze/__init__.pyi:205:6: UP043 [*] Unnecessary default type arguments
+ stubs/PyScreeze/pyscreeze/__init__.pyi:217:6: UP043 [*] Unnecessary default type arguments
+ stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi:35:10: UP043 [*] Unnecessary default type arguments
+ stubs/antlr4-python3-runtime/antlr4/RuleContext.pyi:28:30: UP043 [*] Unnecessary default type arguments
+ stubs/bleach/bleach/html5lib_shim.pyi:65:47: UP043 [*] Unnecessary default type arguments
+ stubs/bleach/bleach/html5lib_shim.pyi:66:81: UP043 [*] Unnecessary default type arguments
+ stubs/boltons/boltons/cacheutils.pyi:128:29: UP043 [*] Unnecessary default type arguments
+ stubs/boltons/boltons/cacheutils.pyi:130:28: UP043 [*] Unnecessary default type arguments
+ stubs/boltons/boltons/dictutils.pyi:25:49: UP043 [*] Unnecessary default type arguments
... 200 additional changes omitted for project

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
UP043 250 250 0 0 0

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre changed the title Stabilize UP045 for stub files on any Python version Stabilize UP043 for stub files on any Python version Jan 30, 2026
@ntBre
Copy link
Contributor Author

ntBre commented Jan 30, 2026

Ecosystem checks look good, and typeshed maintainers both requested this feature and commented on the PR, so I think they'll be glad to see this.

@ntBre ntBre marked this pull request as ready for review January 30, 2026 17:42
Copy link
Collaborator

@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

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

thanks for explaining that the ecosystem hit is okay, otherwise I would've been worried 😄

@ntBre ntBre merged commit 6065ad9 into brent/0.15.0 Jan 30, 2026
41 checks passed
@ntBre ntBre deleted the brent/unnecessary_default_type_args_stubs-0.15.0 branch January 30, 2026 17:47
@ntBre ntBre mentioned this pull request Jan 30, 2026
3 tasks
ntBre added a commit that referenced this pull request Feb 3, 2026
ntBre added a commit that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments