You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
text_encoding() is missing from io.__all__ #111356
The function was added in #19481, by @methane. It looks to me like this was just an accidental omission, rather than something that's been deliberately excluded from __all__. Want to make a PR to add it? :)
Possibly we could also add a test to Lib/test/test_io.py similar to this one, so that we assert that all public module members are included in __all__:
Activity
AlexWaygood commentedon Oct 26, 2023
The function was added in #19481, by @methane. It looks to me like this was just an accidental omission, rather than something that's been deliberately excluded from
__all__. Want to make a PR to add it? :)Possibly we could also add a test to
Lib/test/test_io.pysimilar to this one, so that we assert that all public module members are included in__all__:cpython/Lib/test/test_inspect/test_inspect.py
Lines 125 to 126 in b0699aa
gh-111356: io: Add missing documented objects to io.__all__ (#111370)
pythongh-111356: io: Add missing documented objects to io.__all__ (py…
pythongh-111356: io: Add missing documented objects to io.__all__ (py…
gh-111356: io: Add missing documented objects to io.__all__ (GH-111370)
gh-111356: io: Add missing documented objects to io.__all__ (GH-111370)
hugovk commentedon Dec 11, 2023
Fixed and backported, thanks for the issue!
pythongh-111356: io: Add missing documented objects to io.__all__ (py…
pythongh-111356: io: Add missing documented objects to io.__all__ (py…