diff --git a/stdlib/xxlimited.pyi b/stdlib/xxlimited.pyi index b2fb72ad2c0b..d4f41bbaf22a 100644 --- a/stdlib/xxlimited.pyi +++ b/stdlib/xxlimited.pyi @@ -7,6 +7,8 @@ class Str: ... @final class Xxo: def demo(self) -> None: ... + if sys.version_info >= (3, 11) and sys.platform != "win32": + x_exports: int def foo(__i: int, __j: int) -> Any: ... def new() -> Xxo: ... diff --git a/tests/stubtest_allowlists/darwin-py311.txt b/tests/stubtest_allowlists/darwin-py311.txt index c851f2085282..e269cc19905c 100644 --- a/tests/stubtest_allowlists/darwin-py311.txt +++ b/tests/stubtest_allowlists/darwin-py311.txt @@ -1,5 +1,4 @@ _?curses.color_pair -xxlimited.Xxo.x_exports (dbm.gnu)? (locale.bind_textdomain_codeset)? diff --git a/tests/stubtest_allowlists/darwin-py312.txt b/tests/stubtest_allowlists/darwin-py312.txt index e50d2facc6f8..1d424177d79c 100644 --- a/tests/stubtest_allowlists/darwin-py312.txt +++ b/tests/stubtest_allowlists/darwin-py312.txt @@ -4,7 +4,6 @@ _curses.window.get_wch _posixsubprocess.fork_exec curses.unget_wch curses.window.get_wch -xxlimited.Xxo.x_exports (dbm.gnu)? (locale.bind_textdomain_codeset)? diff --git a/tests/stubtest_allowlists/linux-py311.txt b/tests/stubtest_allowlists/linux-py311.txt index 97aec2409101..639f3c1db9a6 100644 --- a/tests/stubtest_allowlists/linux-py311.txt +++ b/tests/stubtest_allowlists/linux-py311.txt @@ -1,4 +1,3 @@ _?curses.color_pair signal.sigtimedwait signal.sigwaitinfo -xxlimited.Xxo.x_exports diff --git a/tests/stubtest_allowlists/linux-py312.txt b/tests/stubtest_allowlists/linux-py312.txt index e73f41155570..3d07e183f6c3 100644 --- a/tests/stubtest_allowlists/linux-py312.txt +++ b/tests/stubtest_allowlists/linux-py312.txt @@ -2,7 +2,6 @@ _?curses.color_pair _posixsubprocess.fork_exec signal.sigtimedwait signal.sigwaitinfo -xxlimited.Xxo.x_exports # Exists on some Linux builds, and is documented, # but is unavailable in Github Actions on Linux with Python 3.12