Upgrade to latest 3.12 and 3.13 versions for stubtest (#12131)

This commit is contained in:
Alex Waygood
2024-06-12 12:16:39 +01:00
committed by GitHub
parent 9197ace5ec
commit 3ab03deec3
16 changed files with 64 additions and 117 deletions

View File

@@ -3,6 +3,9 @@ asyncio.unix_events.EventLoop
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
asyncio.unix_events.__all__
fcntl.F_GETNOSIGPIPE
fcntl.F_OFD_GETLK
fcntl.F_OFD_SETLK
fcntl.F_OFD_SETLKW
fcntl.F_RDAHEAD
fcntl.F_SETNOSIGPIPE
mmap.MAP_HASSEMAPHORE
@@ -23,6 +26,7 @@ os.waitid_result
posix.grantpt
posix.posix_openpt
posix.ptsname
posixpath.splitroot
posix.unlockpt
posix.waitid
posix.waitid_result
@@ -34,6 +38,9 @@ _curses.unget_wch
_curses.window.get_wch
curses.window.get_wch
# Exists locally on MacOS but not on GitHub
(mmap.MAP_32BIT)?
# These entries looks like a `setup-python` bug:
(dbm.gnu)?
(_?locale.bind_textdomain_codeset)?

View File

@@ -6,6 +6,8 @@ select.kqueue.__init__ # default C signature is wrong
select.POLLMSG # system dependent
# Sometimes these seem to exist on darwin, sometimes not
(_curses.A_ITALIC)?
(curses.A_ITALIC)?
(_socket.MSG_NOSIGNAL)?
(socket.MsgFlag.MSG_NOSIGNAL)?
(socket.MSG_NOSIGNAL)?

View File

@@ -1,5 +1,4 @@
# TODO: triage these (new in py313)
_decimal
_stat.SF_SETTABLE
_stat.SF_SUPPORTED
_stat.SF_SYNTHETIC
@@ -22,7 +21,6 @@ fcntl.RWH_WRITE_LIFE_MEDIUM
fcntl.RWH_WRITE_LIFE_NONE
fcntl.RWH_WRITE_LIFE_NOT_SET
fcntl.RWH_WRITE_LIFE_SHORT
mmap.MAP_32BIT
mmap.MAP_NORESERVE
os.POSIX_SPAWN_CLOSEFROM
os.TFD_CLOEXEC
@@ -46,6 +44,7 @@ posix.TFD_TIMER_CANCEL_ON_SET
posix.grantpt
posix.posix_openpt
posix.ptsname
posixpath.splitroot
posix.timerfd_create
posix.timerfd_gettime
posix.timerfd_gettime_ns
@@ -62,104 +61,6 @@ syslog.LOG_NETINFO
syslog.LOG_RAS
syslog.LOG_REMOTEAUTH
# Python 3.13.0b2 will use the _decimal C extension and this will be resolved. https://github.com/python/typeshed/pull/12061#issuecomment-2139352738
decimal.Context.abs
decimal.Context.add
decimal.Context.canonical
decimal.Context.compare
decimal.Context.compare_signal
decimal.Context.compare_total
decimal.Context.compare_total_mag
decimal.Context.copy_abs
decimal.Context.copy_decimal
decimal.Context.copy_negate
decimal.Context.copy_sign
decimal.Context.create_decimal
decimal.Context.create_decimal_from_float
decimal.Context.divide
decimal.Context.divide_int
decimal.Context.divmod
decimal.Context.exp
decimal.Context.fma
decimal.Context.is_canonical
decimal.Context.is_finite
decimal.Context.is_infinite
decimal.Context.is_nan
decimal.Context.is_normal
decimal.Context.is_qnan
decimal.Context.is_signed
decimal.Context.is_snan
decimal.Context.is_subnormal
decimal.Context.is_zero
decimal.Context.ln
decimal.Context.log10
decimal.Context.logb
decimal.Context.logical_and
decimal.Context.logical_invert
decimal.Context.logical_or
decimal.Context.logical_xor
decimal.Context.max
decimal.Context.max_mag
decimal.Context.min
decimal.Context.min_mag
decimal.Context.minus
decimal.Context.multiply
decimal.Context.next_minus
decimal.Context.next_plus
decimal.Context.next_toward
decimal.Context.normalize
decimal.Context.number_class
decimal.Context.plus
decimal.Context.quantize
decimal.Context.remainder
decimal.Context.remainder_near
decimal.Context.rotate
decimal.Context.same_quantum
decimal.Context.scaleb
decimal.Context.shift
decimal.Context.sqrt
decimal.Context.subtract
decimal.Context.to_eng_string
decimal.Context.to_integral
decimal.Context.to_integral_exact
decimal.Context.to_integral_value
decimal.Context.to_sci_string
decimal.ConversionSyntax.handle
decimal.Decimal.__abs__
decimal.Decimal.__add__
decimal.Decimal.__divmod__
decimal.Decimal.__eq__
decimal.Decimal.__floordiv__
decimal.Decimal.__ge__
decimal.Decimal.__gt__
decimal.Decimal.__le__
decimal.Decimal.__lt__
decimal.Decimal.__mod__
decimal.Decimal.__mul__
decimal.Decimal.__neg__
decimal.Decimal.__pos__
decimal.Decimal.__pow__
decimal.Decimal.__radd__
decimal.Decimal.__rdivmod__
decimal.Decimal.__rfloordiv__
decimal.Decimal.__rmod__
decimal.Decimal.__rmul__
decimal.Decimal.__round__
decimal.Decimal.__rsub__
decimal.Decimal.__rtruediv__
decimal.Decimal.__str__
decimal.Decimal.__sub__
decimal.Decimal.__truediv__
decimal.Decimal.from_float
decimal.DecimalException.handle
decimal.DivisionByZero.handle
decimal.DivisionImpossible.handle
decimal.DivisionUndefined.handle
decimal.InvalidContext.handle
decimal.InvalidOperation.handle
decimal.Overflow.handle
decimal.setcontext
# Exists on some Linux builds, and is documented,
# but is unavailable in Github Actions on Linux with Python 3.12
(os|posix).CLONE_NEWTIME

View File

@@ -15,8 +15,6 @@ _thread.lock
_thread.stack_size
_thread.start_joinable_thread
_thread.start_new_thread
_tkinter.TkappType.gettrace
_tkinter.TkappType.settrace
_tkinter.create
asyncio.AbstractEventLoop.create_server
asyncio.AbstractServer.abort_clients
@@ -110,6 +108,7 @@ mailbox.Maildir.get_info
mailbox.Maildir.remove_flag
mailbox.Maildir.set_flags
mailbox.Maildir.set_info
os.path.splitroot
pdb.Pdb.MAX_CHAINED_EXCEPTION_DEPTH
pdb.Pdb.completedefault
pdb.Pdb.completenames
@@ -158,7 +157,6 @@ tkinter.Text.count
tkinter.Wm.wm_attributes
tkinter.tix
trace.CoverageResults.write_results
traceback.StackSummary.should_show_carets # https://github.com/python/cpython/pull/112670#discussion_r1613952301
turtle.RawTurtle.settiltangle
turtle.__all__
turtle.settiltangle
@@ -260,7 +258,6 @@ _weakref.ProxyType.__reversed__ # Doesn't really exist
argparse._MutuallyExclusiveGroup.add_mutually_exclusive_group # deprecated, forwards arguments to super
ast.ImportFrom.level # None on the class, but never None on instances
builtins.property.__set_name__ # Doesn't actually exist
builtins.str.format_map # stubtest says `mapping` is pos-or-keyword but in reality it is pos-only
collections\.UserList\.index # ignoring pos-or-keyword parameter
dataclasses.KW_ONLY # white lies around defaults
enum.auto.__init__ # The stub for enum.auto is nothing like the implementation

View File

@@ -1,3 +1,8 @@
_winapi.GetLongPathName
_winapi.GetShortPathName
ntpath.exists
os.path.exists
# Undocumented internal method, not really for public consumption.
# (Hard to add types for unless we add stubs for the undocumented _overlapped module...)
asyncio.IocpProactor.finish_socket_func

View File

@@ -31,8 +31,13 @@ ctypes._endian.oledll
ctypes._endian.windll
nt.fchmod
nt.lchmod
ntpath.exists
ntpath.lexists
ntpath.splitroot
os.fchmod
os.lchmod
os.path.exists
os.path.lexists
stat.SF_SETTABLE
stat.SF_SUPPORTED
stat.SF_SYNTHETIC