Skip to content

Conversation

cmaloney
Copy link
Contributor

@cmaloney cmaloney commented Oct 6, 2025

Individual commits have more details around each case.


This + GH-139592 get os down to two reference warning sources:

  1. os.statvfs() pieces which need docs written for both the return object attributes (f_bsize, ...) as well as os constants (ST_RDONLY, ...)
  2. os.uname() pieces which need docs written for the return object attributes (sysname, nodename, ...)

Planning to work on those to get os reference warnings clean once learn from these two PRs


📚 Documentation preview 📚: https://cpython-previews--139636.org.readthedocs.build/

Point to either the constants in `stat` or to
`os.stat_result` as needed.
Reference `dict` as os.environ emulates that and
`collections.abc.MutableMapping` doesn't have members defined.
Change to similar sample code used in `free-threading-python.rst`
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Oct 6, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Oct 6, 2025
@kumaraditya303 kumaraditya303 merged commit fa60354 into python:main Oct 8, 2025
27 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Oct 8, 2025
@cmaloney cmaloney deleted the warnings_os_stat branch October 8, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants