Skip to content

Fix default value for category parameter in deprecated.params#15795

Merged
srittau merged 5 commits into
python:mainfrom
mrhx01:fix-deprecated.params
May 19, 2026
Merged

Fix default value for category parameter in deprecated.params#15795
srittau merged 5 commits into
python:mainfrom
mrhx01:fix-deprecated.params

Conversation

@mrhx01
Copy link
Copy Markdown
Contributor

@mrhx01 mrhx01 commented May 15, 2026

Fixed incorrect default value for category parameter in DeprecatedParams.init method.

Reason
Ellipsis (...) is not a valid default value in stub files. The actual default value at runtime is DeprecationWarning.

https://github.com/laurent-laporte-pro/deprecated/blob/master/deprecated/params.py

@github-actions

This comment has been minimized.

Comment thread stubs/Deprecated/deprecated/params.pyi Outdated
mrhx01 and others added 2 commits May 19, 2026 08:10
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit db9c181 into python:main May 19, 2026
44 checks passed
@mrhx01 mrhx01 deleted the fix-deprecated.params branch May 19, 2026 06:17
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.

2 participants