Skip to content

Commit 3f08b32

Browse files
committed
More stubtest fixes
1 parent 96d900e commit 3f08b32

File tree

7 files changed

+5
-10
lines changed

7 files changed

+5
-10
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ types.UnionType.__qualname__
1212
# Assigning `__new__` causes `func` not to get recognized.
1313
functools.partialmethod.__new__
1414

15-
# decorator approximated by classmethod
15+
# Decorator approximated by classmethod
1616
concurrent.interpreters._crossinterp.classonly.*
17+
# Method using this decorator
18+
concurrent.interpreters._crossinterp.UnboundItem.singleton
1719

1820
# object() sentinels at runtime represented by NewTypes in the stubs
1921
concurrent.interpreters._crossinterp.UNBOUND_ERROR

stdlib/@tests/stubtest_allowlists/win32-py310.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ pyexpat.XMLParserType.GetReparseDeferralEnabled
2424
pyexpat.XMLParserType.SetReparseDeferralEnabled
2525
xml.etree.ElementTree.XMLParser.flush
2626
xml.etree.ElementTree.XMLPullParser.flush
27-
xml.etree.cElementTree.XMLParser.flush
28-
xml.etree.cElementTree.XMLPullParser.flush
29-
xml.parsers.expat.XMLParserType.GetReparseDeferralEnabled
30-
xml.parsers.expat.XMLParserType.SetReparseDeferralEnabled
3127
xml.sax.expatreader.ExpatParser.flush
3228
zipfile.ZipInfo.__slots__
3329

stdlib/@tests/stubtest_allowlists/win32-py312.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification
3434

3535
# Undocumented internal method, not really for public consumption.
3636
# (Hard to add types for unless we add stubs for the undocumented _overlapped module...)
37-
asyncio.IocpProactor.finish_socket_func
3837
asyncio.windows_events.IocpProactor.finish_socket_func
3938

4039

stdlib/@tests/stubtest_allowlists/win32-py313.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
# Undocumented internal method, not really for public consumption.
66
# (Hard to add types for unless we add stubs for the undocumented _overlapped module...)
7-
asyncio.IocpProactor.finish_socket_func
87
asyncio.windows_events.IocpProactor.finish_socket_func

stdlib/@tests/stubtest_allowlists/win32-py314.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55
# Undocumented internal method, not really for public consumption.
66
# (Hard to add types for unless we add stubs for the undocumented _overlapped module...)
7-
asyncio.IocpProactor.finish_socket_func
87
asyncio.windows_events.IocpProactor.finish_socket_func

stdlib/concurrent/interpreters/_crossinterp.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from collections.abc import Callable
33
from typing import Final, NewType
44
from typing_extensions import Never, Self, TypeAlias
55

6-
if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <3.13
6+
if sys.version_info >= (3, 14): # needed to satisfy pyright checks for Python <3.13
77
from _interpqueues import _UnboundOp
88

99
class ItemInterpreterDestroyed(Exception): ...

stdlib/ssl.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ PROTOCOL_TLS_CLIENT: Final = _SSLMethod.PROTOCOL_TLS_CLIENT
144144
PROTOCOL_TLS_SERVER: Final = _SSLMethod.PROTOCOL_TLS_SERVER
145145

146146
class Options(enum.IntFlag):
147-
OP_ALL: Final[int]
147+
OP_ALL: int
148148
OP_NO_SSLv2 = 0
149149
OP_NO_SSLv3 = 33554432
150150
OP_NO_TLSv1 = 67108864

0 commit comments

Comments
 (0)