mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Resolve 3.13 issues for ctypes._endian (#12372)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -193,3 +193,9 @@ 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
|
||||
ctypes._endian.SIZEOF_TIME_T
|
||||
|
||||
@@ -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
|
||||
doctest.TestResults.__doc__
|
||||
doctest.TestResults.__new__
|
||||
filecmp.dircmp.__init__
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,8 +22,6 @@ _winapi.STARTF_USEHOTKEY
|
||||
_winapi.STARTF_USEPOSITION
|
||||
_winapi.STARTF_USESIZE
|
||||
_winapi.SetEvent
|
||||
ctypes._endian.oledll
|
||||
ctypes._endian.windll
|
||||
nt.fchmod
|
||||
nt.lchmod
|
||||
ntpath.exists
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
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, 12):
|
||||
from _ctypes import SIZEOF_TIME_T as SIZEOF_TIME_T
|
||||
|
||||
if sys.platform == "win32":
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user