Skip to content

Stubtest fixes for the latest patch release of py311 #11107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stdlib/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ __all__ = [
if sys.version_info >= (3, 8):
__all__ += ["open_code"]

if sys.version_info >= (3, 11):
__all__ += ["DEFAULT_BUFFER_SIZE", "IncrementalNewlineDecoder", "text_encoding"]

_T = TypeVar("_T")

DEFAULT_BUFFER_SIZE: Literal[8192]
Expand Down
3 changes: 3 additions & 0 deletions stdlib/sre_parse.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ FLAGS: dict[str, int]
TYPE_FLAGS: int
GLOBAL_FLAGS: int

if sys.version_info >= (3, 11):
MAXWIDTH: int

if sys.version_info < (3, 11):
class Verbose(Exception): ...

Expand Down
4 changes: 4 additions & 0 deletions tests/stubtest_allowlists/py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ enum.Enum.__init__
tkinter._VersionInfoType.__doc__
typing.NewType.__mro_entries__

# These can be removed when the next patch release of 3.12 comes out:
io.__all__
sre_parse.MAXWIDTH

# ==========
# Related to positional-only arguments
# ==========
Expand Down