From 1964076a8e39119f6cf5f7f19be3e5c24e3743e6 Mon Sep 17 00:00:00 2001 From: Stephen Morton Date: Wed, 18 Dec 2024 16:11:27 -0800 Subject: [PATCH] move a couple deliberate omissions to don't fix (#13267) --- stdlib/@tests/stubtest_allowlists/py38.txt | 7 ++++--- stdlib/@tests/stubtest_allowlists/py39.txt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/py38.txt b/stdlib/@tests/stubtest_allowlists/py38.txt index 6d98ee251773..e28a38d43f92 100644 --- a/stdlib/@tests/stubtest_allowlists/py38.txt +++ b/stdlib/@tests/stubtest_allowlists/py38.txt @@ -9,8 +9,6 @@ _dummy_threading.Lock _dummy_threading.RLock _dummy_threading.Thread.native_id asyncio.WriteTransport.get_write_buffer_limits # Documented. Exists in subclasses, but not in WriteTransport itself -asyncio.locks._ContextManagerMixin.__enter__ # Always raises; deliberately omitted from the stub -asyncio.locks._ContextManagerMixin.__exit__ # Always raises; deliberately omitted from the stub asyncio.transports.WriteTransport.get_write_buffer_limits # Documented. Exists in subclasses, but not in WriteTransport itself builtins.float.__set_format__ # Internal method for CPython test suite dummy_threading.Condition.acquire @@ -77,7 +75,6 @@ collections.Generator.gi_code collections.Generator.gi_frame collections.Generator.gi_running collections.Generator.gi_yieldfrom -collections.Mapping.__reversed__ # Set to None at runtime for a better error message collections.Mapping.get # Adding None to the Union messed up mypy collections.Sequence.index # Supporting None in end is not mandatory xxsubtype # module missing from the stubs @@ -158,6 +155,9 @@ tkinter.tix.TkVersion # Allowlist entries that cannot or should not be fixed; <= 3.8 # ============================================================ +asyncio.locks._ContextManagerMixin.__enter__ # Always raises; deliberately omitted from the stub +asyncio.locks._ContextManagerMixin.__exit__ # Always raises; deliberately omitted from the stub + # Incompatible changes introduced in Python 3.8.20 # (Remove once 3.8.20 becomes available for GitHub Actions) email._header_value_parser.NLSET @@ -183,6 +183,7 @@ builtins.property.__get__ # Runtime signature is incorrect (https://github.com/ builtins.staticmethod.__get__ # Runtime signature is incorrect (https://github.com/python/cpython/issues/93021) builtins.memoryview.__iter__ # C type that implements __getitem__ builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only +collections.Mapping.__reversed__ # Set to None at runtime for a better error message, omitted from typeshed # Adding these reflected dunders to `typing.AbstractSet` causes a large number of false-positives. See #7414. collections.Set.__rand__ diff --git a/stdlib/@tests/stubtest_allowlists/py39.txt b/stdlib/@tests/stubtest_allowlists/py39.txt index 0ef22057acce..991f638fb46f 100644 --- a/stdlib/@tests/stubtest_allowlists/py39.txt +++ b/stdlib/@tests/stubtest_allowlists/py39.txt @@ -66,7 +66,6 @@ collections.Generator.gi_code collections.Generator.gi_frame collections.Generator.gi_running collections.Generator.gi_yieldfrom -collections.Mapping.__reversed__ # Set to None at runtime for a better error message collections.Mapping.get # Adding None to the Union messed up mypy collections.Sequence.index # Supporting None in end is not mandatory xxsubtype # module missing from the stubs @@ -193,6 +192,7 @@ builtins.property.__get__ # Runtime signature is incorrect (https://github.com/ builtins.staticmethod.__get__ # Runtime signature is incorrect (https://github.com/python/cpython/issues/93021) builtins.memoryview.__iter__ # C type that implements __getitem__ builtins.memoryview.cast # inspect.signature is incorrect about shape being kw-only +collections.Mapping.__reversed__ # Set to None at runtime for a better error message, omitted from typeshed # Adding these reflected dunders to `typing.AbstractSet` causes a large number of false-positives. See #7414. collections.Set.__rand__