From dd6cbc606b01e979d67d42b2f2c84d2b10171695 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:18:44 -0500 Subject: [PATCH 01/15] Resolve 3.13 issues --- stdlib/@tests/stubtest_allowlists/py313.txt | 7 ------- stdlib/ctypes/_endian.pyi | 8 ++++++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/py313.txt b/stdlib/@tests/stubtest_allowlists/py313.txt index 268b03053cee..082c33a1411f 100644 --- a/stdlib/@tests/stubtest_allowlists/py313.txt +++ b/stdlib/@tests/stubtest_allowlists/py313.txt @@ -7,13 +7,6 @@ _thread.interrupt_main _thread.lock _thread.start_joinable_thread _tkinter.create -ctypes._endian.DEFAULT_MODE -ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL -ctypes._endian.SIZEOF_TIME_T -ctypes._endian.cdll -ctypes._endian.pydll -ctypes._endian.pythonapi ctypes.c_char_p.from_param ctypes.c_void_p.from_param ctypes.c_wchar_p.from_param diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index add6365e615f..95412512a8e4 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -1,6 +1,10 @@ import sys -from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union -from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi + +if sys.version_info >= (3, 13): + from ctypes import Array as Array, Structure, Union +else: + from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union + from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi if sys.version_info >= (3, 12): from _ctypes import SIZEOF_TIME_T as SIZEOF_TIME_T From 8829053501246bf8c578933d52c15a691a0673a1 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:21:23 -0500 Subject: [PATCH 02/15] Tweak --- stdlib/ctypes/_endian.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index 95412512a8e4..e236e7fd7488 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -6,10 +6,10 @@ else: from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi -if sys.version_info >= (3, 12): +if sys.version_info >= (3, 12) and sys.version_info < (3, 13): from _ctypes import SIZEOF_TIME_T as SIZEOF_TIME_T -if sys.platform == "win32": +if sys.platform == "win32" and sys.version_info < (3, 13): from ctypes import oledll as oledll, windll as windll # At runtime, the native endianness is an alias for Structure, From da8970b3b7c6f9cd2f2e4fb21dd11275f36072bb Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:32:03 -0500 Subject: [PATCH 03/15] Tewak --- stdlib/ctypes/_endian.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index e236e7fd7488..e31090c78283 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -1,7 +1,7 @@ import sys if sys.version_info >= (3, 13): - from ctypes import Array as Array, Structure, Union + from _ctypes import Array as Array, Structure, Union else: from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi From e0979e7348b6ad3412f5637e2611acbb68505032 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:35:02 -0500 Subject: [PATCH 04/15] Tweak --- stdlib/@tests/stubtest_allowlists/common.txt | 1 + stdlib/ctypes/_endian.pyi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 8d28fbda3240..c45a16eef804 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -638,6 +638,7 @@ tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runti # These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 _ctypes.Array.__iter__ ctypes.Array.__iter__ +ctypes._endian.Array.__iter__ mmap.mmap.__iter__ mmap.mmap.__contains__ xml.etree.ElementTree.Element.__iter__ diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index e31090c78283..e236e7fd7488 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -1,7 +1,7 @@ import sys if sys.version_info >= (3, 13): - from _ctypes import Array as Array, Structure, Union + from ctypes import Array as Array, Structure, Union else: from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi From a774c5f2e9113e9f6880a0e4a303de8f4ba5753d Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:37:10 -0500 Subject: [PATCH 05/15] Fix ignore --- stdlib/@tests/stubtest_allowlists/py313.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/@tests/stubtest_allowlists/py313.txt b/stdlib/@tests/stubtest_allowlists/py313.txt index 082c33a1411f..fdb08a991efd 100644 --- a/stdlib/@tests/stubtest_allowlists/py313.txt +++ b/stdlib/@tests/stubtest_allowlists/py313.txt @@ -197,3 +197,7 @@ codecs.namereplace_errors codecs.replace_errors codecs.strict_errors codecs.xmlcharrefreplace_errors + +# Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__) +# These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 +ctypes._endian.Array.__iter__ From 46c4989b192ae997c298a8373a713cd003370bf5 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:40:25 -0500 Subject: [PATCH 06/15] Fix --- stdlib/@tests/stubtest_allowlists/common.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index c45a16eef804..8d28fbda3240 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -638,7 +638,6 @@ tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runti # These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 _ctypes.Array.__iter__ ctypes.Array.__iter__ -ctypes._endian.Array.__iter__ mmap.mmap.__iter__ mmap.mmap.__contains__ xml.etree.ElementTree.Element.__iter__ From f23f72c9d480933e3b938fe4de8d2ac037dd89b9 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:42:01 -0500 Subject: [PATCH 07/15] Fixes --- stdlib/@tests/stubtest_allowlists/common.txt | 10 +++++----- stdlib/@tests/stubtest_allowlists/py313.txt | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 8d28fbda3240..4f0bde3f22dd 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -310,9 +310,9 @@ _collections_abc.Set.__rxor__ collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there -_?ctypes.Array.raw # exists but stubtest can't see it; only available if _CT == c_char -_?ctypes.Array._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 -_?ctypes.Array._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.Array.*.raw # exists but stubtest can't see it; only available if _CT == c_char +_?ctypes.Array.*._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.Array.*._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 _pydecimal.* # See comments in file argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation) argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic @@ -636,8 +636,8 @@ tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runti # Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__) # These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 -_ctypes.Array.__iter__ -ctypes.Array.__iter__ +_ctypes.Array.*.__iter__ +ctypes.Array.*.__iter__ mmap.mmap.__iter__ mmap.mmap.__contains__ xml.etree.ElementTree.Element.__iter__ diff --git a/stdlib/@tests/stubtest_allowlists/py313.txt b/stdlib/@tests/stubtest_allowlists/py313.txt index fdb08a991efd..082c33a1411f 100644 --- a/stdlib/@tests/stubtest_allowlists/py313.txt +++ b/stdlib/@tests/stubtest_allowlists/py313.txt @@ -197,7 +197,3 @@ codecs.namereplace_errors codecs.replace_errors codecs.strict_errors codecs.xmlcharrefreplace_errors - -# Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__) -# These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 -ctypes._endian.Array.__iter__ From cb767821aa0702cf305377d4441e374dda111fa3 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:44:43 -0500 Subject: [PATCH 08/15] Fix --- stdlib/@tests/stubtest_allowlists/common.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 4f0bde3f22dd..84de8b895dd8 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -310,9 +310,9 @@ _collections_abc.Set.__rxor__ collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there -_?ctypes.Array.*.raw # exists but stubtest can't see it; only available if _CT == c_char -_?ctypes.Array.*._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 -_?ctypes.Array.*._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.*.Array.raw # exists but stubtest can't see it; only available if _CT == c_char +_?ctypes.*.Array._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.*.Array._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 _pydecimal.* # See comments in file argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation) argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic @@ -636,8 +636,8 @@ tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runti # Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__) # These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 -_ctypes.Array.*.__iter__ -ctypes.Array.*.__iter__ +_ctypes.*.Array.__iter__ +ctypes.*.Array.__iter__ mmap.mmap.__iter__ mmap.mmap.__contains__ xml.etree.ElementTree.Element.__iter__ From db29e15bf69924a0d48b83e43da17d1538e2da66 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 12:50:09 -0500 Subject: [PATCH 09/15] Fixes --- stdlib/@tests/stubtest_allowlists/win32-py313.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/win32-py313.txt b/stdlib/@tests/stubtest_allowlists/win32-py313.txt index 41369de166df..151a23949127 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py313.txt @@ -24,8 +24,6 @@ _winapi.STARTF_USEHOTKEY _winapi.STARTF_USEPOSITION _winapi.STARTF_USESIZE _winapi.SetEvent -ctypes._endian.oledll -ctypes._endian.windll nt.fchmod nt.lchmod ntpath.exists From 2074c3da25d04aec81d9029760959c0f7b57b717 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:34:49 -0500 Subject: [PATCH 10/15] Address feedback --- stdlib/@tests/stubtest_allowlists/common.txt | 10 +++++----- stdlib/ctypes/_endian.pyi | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 84de8b895dd8..8d28fbda3240 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -310,9 +310,9 @@ _collections_abc.Set.__rxor__ collections.abc.* # Types are re-exported from _collections_abc, so errors should be fixed there -_?ctypes.*.Array.raw # exists but stubtest can't see it; only available if _CT == c_char -_?ctypes.*.Array._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 -_?ctypes.*.Array._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.Array.raw # exists but stubtest can't see it; only available if _CT == c_char +_?ctypes.Array._type_ # _type_ is abstract, https://github.com/python/typeshed/pull/6361 +_?ctypes.Array._length_ # _length_ is abstract, https://github.com/python/typeshed/pull/6361 _pydecimal.* # See comments in file argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation) argparse.Namespace.__getattr__ # The whole point of this class is its attributes are dynamic @@ -636,8 +636,8 @@ tkinter.Wm.wm_iconphoto # Default value of argument can't be used without runti # Iterable classes that don't define __iter__ at runtime (usually iterable via __getitem__) # These would ideally be special-cased by type checkers; see https://github.com/python/mypy/issues/2220 -_ctypes.*.Array.__iter__ -ctypes.*.Array.__iter__ +_ctypes.Array.__iter__ +ctypes.Array.__iter__ mmap.mmap.__iter__ mmap.mmap.__contains__ xml.etree.ElementTree.Element.__iter__ diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index e236e7fd7488..06017eb68735 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -1,9 +1,8 @@ import sys +from _ctypes import Structure, Union -if sys.version_info >= (3, 13): - from ctypes import Array as Array, Structure, Union -else: - from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL, Structure, Union +if sys.version_info < (3, 13): + from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi if sys.version_info >= (3, 12) and sys.version_info < (3, 13): From adb8d1059194c829cae6ea9a1ee03bec85746639 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 20 Jul 2024 23:59:18 -0500 Subject: [PATCH 11/15] Remove as imports --- stdlib/ctypes/_endian.pyi | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/stdlib/ctypes/_endian.pyi b/stdlib/ctypes/_endian.pyi index 06017eb68735..144f5ba5dd40 100644 --- a/stdlib/ctypes/_endian.pyi +++ b/stdlib/ctypes/_endian.pyi @@ -1,15 +1,5 @@ import sys -from _ctypes import Structure, Union - -if sys.version_info < (3, 13): - from _ctypes import RTLD_GLOBAL as RTLD_GLOBAL, RTLD_LOCAL as RTLD_LOCAL - from ctypes import DEFAULT_MODE as DEFAULT_MODE, cdll as cdll, pydll as pydll, pythonapi as pythonapi - -if sys.version_info >= (3, 12) and sys.version_info < (3, 13): - from _ctypes import SIZEOF_TIME_T as SIZEOF_TIME_T - -if sys.platform == "win32" and sys.version_info < (3, 13): - from ctypes import oledll as oledll, windll as windll +from ctypes import Structure, Union # At runtime, the native endianness is an alias for Structure, # while the other is a subclass with a metaclass added in. From a77c345d039ca37a3bfbca034e920a8160b8c8fb Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:39:56 -0500 Subject: [PATCH 12/15] Add ignores --- stdlib/@tests/stubtest_allowlists/py310.txt | 5 +++++ stdlib/@tests/stubtest_allowlists/py311.txt | 5 +++++ stdlib/@tests/stubtest_allowlists/py312.txt | 5 +++++ stdlib/@tests/stubtest_allowlists/py38.txt | 5 +++++ stdlib/@tests/stubtest_allowlists/py39.txt | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/stdlib/@tests/stubtest_allowlists/py310.txt b/stdlib/@tests/stubtest_allowlists/py310.txt index 8e77280791fa..175c35d8e2ac 100644 --- a/stdlib/@tests/stubtest_allowlists/py310.txt +++ b/stdlib/@tests/stubtest_allowlists/py310.txt @@ -254,3 +254,8 @@ types.SimpleNamespace.__init__ # class doesn't accept positional arguments but h # These enums derive from (str, Enum) pstats.SortKey.__new__ tkinter.EventType.__new__ + +# Incorrectly star import. +ctypes._endian.DEFAULT_MODE +ctypes._endian.RTLD_GLOBAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py311.txt b/stdlib/@tests/stubtest_allowlists/py311.txt index aac0d4820b62..b2000041e975 100644 --- a/stdlib/@tests/stubtest_allowlists/py311.txt +++ b/stdlib/@tests/stubtest_allowlists/py311.txt @@ -214,3 +214,8 @@ asynchat.async_chat.use_encoding asynchat.find_prefix_at_end pkgutil.ImpImporter\..* pkgutil.ImpLoader\..* + +# Incorrectly star import. +ctypes._endian.DEFAULT_MODE +ctypes._endian.RTLD_GLOBAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py312.txt b/stdlib/@tests/stubtest_allowlists/py312.txt index 616fe8cf620e..964560775056 100644 --- a/stdlib/@tests/stubtest_allowlists/py312.txt +++ b/stdlib/@tests/stubtest_allowlists/py312.txt @@ -193,3 +193,8 @@ typing.SupportsAbs.__type_params__ typing.SupportsRound.__type_params__ typing_extensions.SupportsAbs.__type_params__ typing_extensions.SupportsRound.__type_params__ + +# Incorrectly star import. +ctypes._endian.DEFAULT_MODE +ctypes._endian.RTLD_GLOBAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py38.txt b/stdlib/@tests/stubtest_allowlists/py38.txt index 893efaae4a38..8c32f1acbb05 100644 --- a/stdlib/@tests/stubtest_allowlists/py38.txt +++ b/stdlib/@tests/stubtest_allowlists/py38.txt @@ -245,3 +245,8 @@ unittest\.test\..+ # These enums derive from (str, Enum) pstats.SortKey.__new__ tkinter.EventType.__new__ + +# Incorrectly star import. +ctypes._endian.DEFAULT_MODE +ctypes._endian.RTLD_GLOBAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py39.txt b/stdlib/@tests/stubtest_allowlists/py39.txt index 5203888299e9..25127ee90233 100644 --- a/stdlib/@tests/stubtest_allowlists/py39.txt +++ b/stdlib/@tests/stubtest_allowlists/py39.txt @@ -228,3 +228,8 @@ types.SimpleNamespace.__init__ # class doesn't accept positional arguments but # These enums derive from (str, Enum) pstats.SortKey.__new__ tkinter.EventType.__new__ + +# Incorrectly star import. +ctypes._endian.DEFAULT_MODE +ctypes._endian.RTLD_GLOBAL +ctypes._endian.RTLD_LOCAL From b66502c742f273ec93348123cf6a87ab388b48d7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 21:41:33 +0000 Subject: [PATCH 13/15] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/@tests/stubtest_allowlists/py310.txt | 2 +- stdlib/@tests/stubtest_allowlists/py311.txt | 2 +- stdlib/@tests/stubtest_allowlists/py312.txt | 2 +- stdlib/@tests/stubtest_allowlists/py38.txt | 2 +- stdlib/@tests/stubtest_allowlists/py39.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/py310.txt b/stdlib/@tests/stubtest_allowlists/py310.txt index 175c35d8e2ac..8d0631cdd291 100644 --- a/stdlib/@tests/stubtest_allowlists/py310.txt +++ b/stdlib/@tests/stubtest_allowlists/py310.txt @@ -258,4 +258,4 @@ tkinter.EventType.__new__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py311.txt b/stdlib/@tests/stubtest_allowlists/py311.txt index b2000041e975..308855f8f00b 100644 --- a/stdlib/@tests/stubtest_allowlists/py311.txt +++ b/stdlib/@tests/stubtest_allowlists/py311.txt @@ -218,4 +218,4 @@ pkgutil.ImpLoader\..* # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py312.txt b/stdlib/@tests/stubtest_allowlists/py312.txt index 964560775056..09085749f520 100644 --- a/stdlib/@tests/stubtest_allowlists/py312.txt +++ b/stdlib/@tests/stubtest_allowlists/py312.txt @@ -197,4 +197,4 @@ typing_extensions.SupportsRound.__type_params__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py38.txt b/stdlib/@tests/stubtest_allowlists/py38.txt index 8c32f1acbb05..7866e8c822b0 100644 --- a/stdlib/@tests/stubtest_allowlists/py38.txt +++ b/stdlib/@tests/stubtest_allowlists/py38.txt @@ -249,4 +249,4 @@ tkinter.EventType.__new__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL diff --git a/stdlib/@tests/stubtest_allowlists/py39.txt b/stdlib/@tests/stubtest_allowlists/py39.txt index 25127ee90233..e7217a040654 100644 --- a/stdlib/@tests/stubtest_allowlists/py39.txt +++ b/stdlib/@tests/stubtest_allowlists/py39.txt @@ -232,4 +232,4 @@ tkinter.EventType.__new__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL From 63be585712089f226e0f72c3141a3b294de2b701 Mon Sep 17 00:00:00 2001 From: Maxwell Muoto <41130755+max-muoto@users.noreply.github.com> Date: Sat, 3 Aug 2024 16:43:29 -0500 Subject: [PATCH 14/15] Fix 3.12 --- stdlib/@tests/stubtest_allowlists/py312.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py312.txt b/stdlib/@tests/stubtest_allowlists/py312.txt index 09085749f520..e5f89e4aeb9b 100644 --- a/stdlib/@tests/stubtest_allowlists/py312.txt +++ b/stdlib/@tests/stubtest_allowlists/py312.txt @@ -197,4 +197,5 @@ typing_extensions.SupportsRound.__type_params__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL +ctypes._endian.SIZEOF_TIME_T From 5f1b730050e404fa3a73e467f79831614e1e7eb2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 21:45:26 +0000 Subject: [PATCH 15/15] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/@tests/stubtest_allowlists/py312.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py312.txt b/stdlib/@tests/stubtest_allowlists/py312.txt index e5f89e4aeb9b..5cd924397f6e 100644 --- a/stdlib/@tests/stubtest_allowlists/py312.txt +++ b/stdlib/@tests/stubtest_allowlists/py312.txt @@ -197,5 +197,5 @@ typing_extensions.SupportsRound.__type_params__ # Incorrectly star import. ctypes._endian.DEFAULT_MODE ctypes._endian.RTLD_GLOBAL -ctypes._endian.RTLD_LOCAL +ctypes._endian.RTLD_LOCAL ctypes._endian.SIZEOF_TIME_T