diff --git a/stdlib/asyncio/base_events.pyi b/stdlib/asyncio/base_events.pyi index 70e345121..6ff3c2c9f 100644 --- a/stdlib/asyncio/base_events.pyi +++ b/stdlib/asyncio/base_events.pyi @@ -399,7 +399,7 @@ class BaseEventLoop(AbstractEventLoop): stdout: int | IO[Any] | None = -1, stderr: int | IO[Any] | None = -1, universal_newlines: Literal[False] = False, - shell: Literal[True] = ..., + shell: Literal[False] = False, bufsize: Literal[0] = 0, encoding: None = None, errors: None = None, diff --git a/stdlib/asyncio/events.pyi b/stdlib/asyncio/events.pyi index 86ea9cf92..fd8213f55 100644 --- a/stdlib/asyncio/events.pyi +++ b/stdlib/asyncio/events.pyi @@ -542,7 +542,7 @@ class AbstractEventLoop: stdout: int | IO[Any] | None = -1, stderr: int | IO[Any] | None = -1, universal_newlines: Literal[False] = ..., - shell: Literal[True] = ..., + shell: Literal[False] = ..., bufsize: Literal[0] = ..., encoding: None = ..., errors: None = ..., diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index 64c2c7079..35e5e7c72 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -7,6 +7,8 @@ _collections_abc.ItemsView.__reversed__ _collections_abc.KeysView.__reversed__ _collections_abc.ValuesView.__reversed__ _weakref.ProxyType.__reversed__ # Doesn't really exist +asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them +asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them asyncio.Future.__init__ # Usually initialized from c object asyncio.futures.Future.__init__ # Usually initialized from c object builtins.float.__setformat__ # Internal method for CPython test suite diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index 5da38eae1..b65f27050 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -101,6 +101,8 @@ types.GenericAlias.__getattr__ types.GenericAlias.__mro_entries__ weakref.ProxyType.__reversed__ # Doesn't really exist inspect._ParameterKind.description # Still exists, but stubtest can't see it +asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them +asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them # C signature is broader than what is actually accepted ast.Bytes.__new__ diff --git a/tests/stubtest_allowlists/py38.txt b/tests/stubtest_allowlists/py38.txt index d5912461e..ea44eb240 100644 --- a/tests/stubtest_allowlists/py38.txt +++ b/tests/stubtest_allowlists/py38.txt @@ -11,6 +11,8 @@ ast.Ellipsis.__new__ ast.NameConstant.__new__ ast.Num.__new__ ast.Str.__new__ +asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them +asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them asyncio.Future.__init__ # Usually initialized from c object asyncio.futures.Future.__init__ # Usually initialized from c object asyncio.locks._ContextManagerMixin.__enter__ # Always raises; deliberately omitted from the stub diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index da7d32d1c..41847807d 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -13,6 +13,8 @@ ast.Index.__new__ ast.NameConstant.__new__ ast.Num.__new__ ast.Str.__new__ +asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them +asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them asyncio.Future.__init__ # Usually initialized from c object asyncio.futures.Future.__init__ # Usually initialized from c object builtins.float.__setformat__ # Internal method for CPython test suite diff --git a/tests/stubtest_allowlists/py3_common.txt b/tests/stubtest_allowlists/py3_common.txt index 3626efa5f..0990513e4 100644 --- a/tests/stubtest_allowlists/py3_common.txt +++ b/tests/stubtest_allowlists/py3_common.txt @@ -34,12 +34,10 @@ argparse.Namespace.__getattr__ # The whole point of this class is its attribute asynchat.async_chat.encoding # Removal planned for 3.12, can add if someone needs this asynchat.async_chat.use_encoding # Removal planned for 3.12, can add if someone needs this asynchat.find_prefix_at_end # Removal planned for 3.12, can add if someone needs this -asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them # Condition functions are exported in __init__ asyncio.Condition.acquire asyncio.Condition.locked asyncio.Condition.release -asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them # Condition functions are exported in __init__ asyncio.locks.Condition.acquire asyncio.locks.Condition.locked