mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
@@ -1,2 +1,4 @@
|
||||
_curses.color_pair
|
||||
curses.color_pair
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
|
||||
2
tests/stubtest_whitelists/darwin-py39.txt
Normal file
2
tests/stubtest_whitelists/darwin-py39.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
@@ -1,10 +1,10 @@
|
||||
_posixsubprocess.cloexec_pipe
|
||||
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
|
||||
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
|
||||
_?curses.A_ITALIC # System dependent
|
||||
curses.COLORS # Initialized after start_color
|
||||
curses.COLOR_PAIRS # Initialized after start_color
|
||||
curses.COLS # Initialized only after initscr call.
|
||||
curses.LINES # Initialized only after initscr call.
|
||||
curses.COLS # Initialized only after initscr call.
|
||||
curses.LINES # Initialized only after initscr call.
|
||||
distutils.command.bdist_msi # msi is only available on windows
|
||||
grp.getgrgid
|
||||
grp.struct_group._asdict
|
||||
@@ -18,9 +18,12 @@ posix.sched_param # system dependent. Unclear if macos has it.
|
||||
posix.EX_NOTFOUND
|
||||
posix.XATTR.* # Value seems to be in docs but not defined in github macos
|
||||
readline.append_history_file # not defined in macos
|
||||
select.kqueue.__init__ # default C signature is wrong
|
||||
select.KQ_FILTER_NETDEV # system dependent
|
||||
select.kqueue.__init__ # default C signature is wrong
|
||||
select.POLLMSG # system dependent
|
||||
selectors.KqueueSelector # Depends on system
|
||||
signal.SIGEMT # Depends on system
|
||||
signal.SIGINFO # Depends on system
|
||||
socket.socketpair
|
||||
time.CLOCK_HIGHRES
|
||||
|
||||
|
||||
@@ -1,2 +1,22 @@
|
||||
_curses.color_pair
|
||||
curses.color_pair
|
||||
os.initgroups
|
||||
os.pipe2
|
||||
os.posix_fadvise
|
||||
os.posix_fallocate
|
||||
os.sched_getaffinity
|
||||
os.sched_getparam
|
||||
os.sched_getscheduler
|
||||
os.sched_rr_get_interval
|
||||
os.sched_setaffinity
|
||||
os.sched_setparam
|
||||
os.sched_setscheduler
|
||||
os.setresgid
|
||||
os.setresuid
|
||||
os.waitid
|
||||
os.sendfile
|
||||
signal.sigtimedwait
|
||||
signal.sigwaitinfo
|
||||
select.epoll.register
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
time.CLOCK_UPTIME
|
||||
select.epoll.register
|
||||
|
||||
4
tests/stubtest_whitelists/linux-py39.txt
Normal file
4
tests/stubtest_whitelists/linux-py39.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
os.sendfile
|
||||
select.epoll.register
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
@@ -1,9 +1,9 @@
|
||||
_posixsubprocess.cloexec_pipe
|
||||
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
|
||||
_?curses.ACS_.* # ACS codes are initialized only after initscr call.
|
||||
curses.COLORS # Initialized after start_color
|
||||
curses.COLOR_PAIRS # Initialized after start_color
|
||||
curses.COLS # Initialized only after initscr call.
|
||||
curses.LINES # Initialized only after initscr call.
|
||||
curses.COLS # Initialized only after initscr call.
|
||||
curses.LINES # Initialized only after initscr call.
|
||||
distutils.command.bdist_msi # msi is only available on windows
|
||||
grp.getgrgid
|
||||
grp.struct_group._asdict
|
||||
@@ -19,6 +19,9 @@ os.lchmod
|
||||
os.plock
|
||||
posix.EX_NOTFOUND
|
||||
select.EPOLL_RDHUP
|
||||
selectors.KqueueSelector
|
||||
signal.SIGEMT
|
||||
signal.SIGINFO
|
||||
socket.socketpair
|
||||
spwd.getspnam
|
||||
spwd.struct_spwd._asdict
|
||||
|
||||
@@ -54,28 +54,18 @@ ipaddress.IPv4Interface.hostmask
|
||||
ipaddress.IPv6Interface.hostmask
|
||||
ipaddress._BaseNetwork.broadcast_address
|
||||
ipaddress._BaseNetwork.hostmask
|
||||
logging.FileHandler.__init__
|
||||
logging.handlers.BaseRotatingHandler.__init__
|
||||
logging.handlers.RotatingFileHandler.__init__
|
||||
logging.handlers.TimedRotatingFileHandler.__init__
|
||||
logging.handlers.WatchedFileHandler.__init__
|
||||
multiprocessing.spawn._main
|
||||
os.getgrouplist
|
||||
os.sendfile
|
||||
pickle.Pickler.reducer_override # implemented in C pickler
|
||||
# platform.uname_result's processor field is now dynamically made to exist
|
||||
platform.uname_result.__new__
|
||||
platform.uname_result._fields
|
||||
platform.uname_result.processor
|
||||
queue.SimpleQueue.__init__ # Default C __init__ signature is wrong
|
||||
select.epoll.register
|
||||
smtplib.LMTP.__init__
|
||||
ssl.PROTOCOL_SSLv3 # Depends on ssl compilation
|
||||
ssl.RAND_egd # Depends on openssl compilation
|
||||
symtable.SymbolTable.has_exec
|
||||
sys.UnraisableHookArgs # Not exported from sys
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
types.ClassMethodDescriptorType.__get__
|
||||
types.CodeType.replace
|
||||
types.GenericAlias.__getattr__
|
||||
@@ -122,26 +112,8 @@ contextlib.ExitStack.callback
|
||||
contextvars.ContextVar.reset
|
||||
contextvars.ContextVar.set
|
||||
io.IncrementalNewlineDecoder.setstate
|
||||
os.initgroups
|
||||
os.pipe2
|
||||
os.posix_fadvise
|
||||
os.posix_fallocate
|
||||
os.sched_getaffinity
|
||||
os.sched_getparam
|
||||
os.sched_getscheduler
|
||||
os.sched_rr_get_interval
|
||||
os.sched_setaffinity
|
||||
os.sched_setparam
|
||||
os.sched_setscheduler
|
||||
os.setresgid
|
||||
os.setresuid
|
||||
os.waitid
|
||||
pwd.getpwnam
|
||||
pwd.getpwuid
|
||||
random.SystemRandom.getrandbits
|
||||
secrets.SystemRandom.getrandbits
|
||||
signal.sigtimedwait
|
||||
signal.sigwaitinfo
|
||||
trace.Trace.runfunc
|
||||
zipfile.ZipExtFile.seek
|
||||
# These enums derive from (str, Enum). See comment in py3_common.txt
|
||||
@@ -170,7 +142,6 @@ locale.strxfrm
|
||||
logging.Formatter.__init__
|
||||
logging.LoggerAdapter.__init__
|
||||
logging.PercentStyle.__init__
|
||||
logging.config.fileConfig
|
||||
pathlib.Path.chmod
|
||||
pathlib.Path.stat
|
||||
pathlib.Path.write_text
|
||||
|
||||
@@ -35,7 +35,6 @@ http.server.SimpleHTTPRequestHandler.__init__ # *args is expanded
|
||||
importlib.metadata # Added in 3.8
|
||||
ipaddress._BaseNetwork.__init__
|
||||
json.loads
|
||||
macurl2path # removed in 3.7
|
||||
multiprocessing.shared_memory
|
||||
os.utime
|
||||
pyexpat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - function gets only positional args
|
||||
|
||||
@@ -50,7 +50,6 @@ ipaddress._BaseNetwork.hostmask
|
||||
multiprocessing.spawn._main
|
||||
pickle.Pickler.reducer_override # implemented in C pickler
|
||||
queue.SimpleQueue.__init__ # Default C __init__ signature is wrong
|
||||
select.epoll.register
|
||||
random.Random.randrange # missing undocumented arg _int
|
||||
random.randrange # missing undocumented arg _int
|
||||
sched.Event.__doc__ # __slots__ is overridden
|
||||
|
||||
@@ -55,29 +55,19 @@ ipaddress.IPv4Interface.hostmask
|
||||
ipaddress.IPv6Interface.hostmask
|
||||
ipaddress._BaseNetwork.broadcast_address
|
||||
ipaddress._BaseNetwork.hostmask
|
||||
logging.FileHandler.__init__
|
||||
logging.handlers.BaseRotatingHandler.__init__
|
||||
logging.handlers.RotatingFileHandler.__init__
|
||||
logging.handlers.TimedRotatingFileHandler.__init__
|
||||
logging.handlers.WatchedFileHandler.__init__
|
||||
multiprocessing.spawn._main
|
||||
os.getgrouplist
|
||||
os.sendfile
|
||||
pickle.Pickler.reducer_override # implemented in C pickler
|
||||
# platform.uname_result's processor field is now dynamically made to exist
|
||||
platform.uname_result.__new__
|
||||
platform.uname_result._fields
|
||||
platform.uname_result.processor
|
||||
queue.SimpleQueue.__init__ # Default C __init__ signature is wrong
|
||||
select.epoll.register
|
||||
sched.Event.__doc__ # __slots__ is overridden
|
||||
smtplib.LMTP.__init__
|
||||
ssl.PROTOCOL_SSLv3 # Depends on ssl compilation
|
||||
ssl.RAND_egd # Depends on openssl compilation
|
||||
symtable.SymbolTable.has_exec
|
||||
sys.UnraisableHookArgs # Not exported from sys
|
||||
time.CLOCK_PROF
|
||||
time.CLOCK_UPTIME
|
||||
types.ClassMethodDescriptorType.__get__
|
||||
types.CodeType.replace
|
||||
types.GenericAlias.__getattr__
|
||||
|
||||
@@ -170,9 +170,6 @@ pydoc.TextDoc.docproperty
|
||||
pydoc.TextDoc.docroutine
|
||||
select.poll # Depends on configuration
|
||||
selectors.DevpollSelector # Depends on configuration
|
||||
selectors.KqueueSelector # Depends on system
|
||||
signal.SIGEMT # Depends on system
|
||||
signal.SIGINFO # Depends on system
|
||||
socketserver.BaseServer.fileno # implemented in derived classes
|
||||
socketserver.BaseServer.get_request # implemented in derived classes
|
||||
socketserver.BaseServer.server_bind # implemented in derived classes
|
||||
@@ -202,7 +199,7 @@ traceback.TracebackException.from_exception # explicitly expanding arguemnts go
|
||||
types.GetSetDescriptorType.__get__ # this function can accept no value for the type parameter.
|
||||
types.MemberDescriptorType.__get__ # this function can accept no value for the type parameter.
|
||||
types.SimpleNamespace.__init__ # class doesn't accept positional arguments but has default C signature
|
||||
typing.IO.__iter__ # Added because IO streams are iterable. See https://github.com/python/typeshed/commit/97bc450acd60c1bcdafef3ce8fbe3b95a9c0cac3
|
||||
typing.IO.__iter__ # Added because IO streams are iterable. See https://github.com/python/typeshed/commit/97bc450acd60c1bcdafef3ce8fbe3b95a9c0cac3
|
||||
typing.IO.__next__ # Added because IO streams are iterable. See https://github.com/python/typeshed/commit/97bc450acd60c1bcdafef3ce8fbe3b95a9c0cac3
|
||||
typing.type_check_only # typing decorator that is not available at runtime
|
||||
unittest.mock.patch # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
_msi.CreateRecord
|
||||
_msi.FCICreate
|
||||
_msi.OpenDatabase
|
||||
ntpath.realpath
|
||||
sqlite3.Connection.enable_load_extension
|
||||
sqlite3.Connection.load_extension
|
||||
sqlite3.dbapi2.Connection.enable_load_extension
|
||||
|
||||
@@ -9,4 +9,3 @@ urllib.parse.parse_qsl
|
||||
|
||||
hashlib.scrypt
|
||||
os.startfile
|
||||
posixpath.splitunc # This doesn't exist, but our hands are tied by check_consistent
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
ctypes.GetLastError # Is actually a pointer
|
||||
selectors.KqueueSelector
|
||||
signal.SIGEMT
|
||||
signal.SIGINFO
|
||||
locale.[A-Z0-9_]+ # Constants that should be moved to _locale and re-exported conditionally
|
||||
locale.nl_langinfo # Function that should be moved to _locale and re-exported conditionally
|
||||
os.path.join # Parameter name mismatch
|
||||
posixpath.altsep # Type mismatch
|
||||
urllib.request.pathname2url # Parameter name mismatch
|
||||
urllib.request.url2pathname # Same
|
||||
|
||||
|
||||
Reference in New Issue
Block a user