Skip to content

gh-156929: add skip_file_prefixes to warnings.deprecated - #156937

Open
flying-sheep wants to merge 6 commits into
python:mainfrom
flying-sheep:deprecated-skip_file_prefixes
Open

gh-156929: add skip_file_prefixes to warnings.deprecated#156937
flying-sheep wants to merge 6 commits into
python:mainfrom
flying-sheep:deprecated-skip_file_prefixes

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Adds a skip_file_prefixes to warnings.deprecated that forwards it to warnings.warn.

Only difference is that since @deprecated is executed ahead of time, forcing users to pass a tuple makes no sense, so we convert the input into a tuple.

@read-the-docs-community

read-the-docs-community Bot commented Sep 4, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34420274 | 📁 Comparing 19b5e1d against main (aaae15c)

  🔍 Preview build  

6 files changed · ± 6 modified

± Modified

@StanFromIreland

Copy link
Copy Markdown
Member

The tests are failing.

@flying-sheep

Copy link
Copy Markdown
Contributor Author

Thanks! Guess I'll have to actually set up a local dev environment.

@flying-sheep

Copy link
Copy Markdown
Contributor Author

nice, now they all pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants