Skip to content

Commit 3e24b4b

Browse files
author
hauntsaninja
committed
update whitelist, reorganise
1 parent 731358a commit 3e24b4b

File tree

1 file changed

+77
-84
lines changed

1 file changed

+77
-84
lines changed

tests/stubtest_whitelists/py39.txt

Lines changed: 77 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ _ast.ImportFrom.level
22
_dummy_thread
33
_thread.ExceptHookArgs
44
_thread._ExceptHookArgs
5-
_weakref.getweakrefcount
65
ast.Bytes.__new__
76
ast.Ellipsis.__new__
87
ast.ExtSlice.__new__
@@ -12,71 +11,40 @@ ast.NameConstant.__new__
1211
ast.Num.__new__
1312
ast.Str.__new__
1413
asyncio.AbstractEventLoop.sock_sendfile
15-
asyncio.compat # removed in 3.7
14+
asyncio.compat # module removed in 3.7
1615
asyncio.Future.__init__
1716
asyncio.Future._callbacks
1817
asyncio.events.AbstractEventLoop.sock_sendfile
1918
asyncio.futures.Future.__init__
2019
asyncio.futures.Future._callbacks
2120
asyncio.proactor_events._ProactorBasePipeTransport.__del__
22-
builtins.bytearray.extend
23-
builtins.bytearray.pop
2421
builtins.compile
2522
builtins.dict.get
2623
builtins.reversed
27-
bz2.BZ2Compressor.compress
28-
bz2.BZ2File.read
29-
bz2.BZ2File.read1
30-
bz2.BZ2File.readline
31-
bz2.BZ2File.seek
32-
codecs.lookup
33-
codecs.lookup_error
34-
codecs.register
3524
collections.AsyncGenerator.ag_await
3625
collections.AsyncGenerator.ag_code
3726
collections.AsyncGenerator.ag_frame
3827
collections.AsyncGenerator.ag_running
39-
collections.Container.__contains__
4028
collections.ItemsView.__reversed__
4129
collections.KeysView.__reversed__
42-
collections.OrderedDict.fromkeys
43-
collections.OrderedDict.setdefault
4430
collections.ValuesView.__reversed__
4531
collections.abc.AsyncGenerator.ag_await
4632
collections.abc.AsyncGenerator.ag_code
4733
collections.abc.AsyncGenerator.ag_frame
4834
collections.abc.AsyncGenerator.ag_running
49-
collections.abc.Container.__contains__
5035
collections.abc.ItemsView.__reversed__
5136
collections.abc.KeysView.__reversed__
5237
collections.abc.ValuesView.__reversed__
53-
compileall.compile_dir
54-
compileall.compile_file
55-
concurrent.futures.Executor.submit
56-
concurrent.futures.ProcessPoolExecutor.map
5738
concurrent.futures.ProcessPoolExecutor.shutdown
58-
concurrent.futures.ProcessPoolExecutor.submit
5939
concurrent.futures.ThreadPoolExecutor.shutdown
60-
concurrent.futures.ThreadPoolExecutor.submit
61-
concurrent.futures._base.Executor.submit
6240
concurrent.futures.process.ProcessPoolExecutor.shutdown
63-
concurrent.futures.process.ProcessPoolExecutor.submit
6441
concurrent.futures.thread.ThreadPoolExecutor.shutdown
65-
concurrent.futures.thread.ThreadPoolExecutor.submit
66-
contextlib.AbstractContextManager.__exit__
67-
contextlib.AsyncExitStack.callback
68-
contextlib.AsyncExitStack.push_async_callback
69-
contextlib.ExitStack.callback
7042
contextvars.Context.__init__
7143
contextvars.Context.get
72-
contextvars.ContextVar.reset
73-
contextvars.ContextVar.set
7444
copy.PyStringMap
7545
dataclasses.Field.__init__
7646
dataclasses.InitVar.__init__
77-
dataclasses.dataclass
7847
dataclasses.field
79-
dataclasses.replace
8048
dummy_threading
8149
email.message.MIMEPart.as_string
8250
enum.Enum._generate_next_value_
@@ -86,41 +54,27 @@ functools.partialmethod.__get__
8654
functools.singledispatchmethod.__call__
8755
gettext.install
8856
gettext.translation
89-
hmac.compare_digest
9057
hmac.new # Stub is a white lie; see comments in the stub
9158
http.client.HTTPSConnection.__init__
9259
http.cookiejar.DefaultCookiePolicy.__init__
9360
http.server.SimpleHTTPRequestHandler.__init__
94-
imaplib.IMAP4.__init__
95-
imaplib.IMAP4.open
96-
imaplib.IMAP4_SSL.__init__
97-
imaplib.IMAP4_SSL.open
9861
importlib.metadata.DistributionFinder.Context.pattern
9962
importlib.metadata.EntryPointBase
10063
inspect.isasyncgenfunction
10164
inspect.iscoroutinefunction
10265
inspect.isgeneratorfunction
103-
io.IncrementalNewlineDecoder.setstate
10466
ipaddress.IPv4Interface.hostmask
10567
ipaddress.IPv6Interface.hostmask
10668
ipaddress._BaseNetwork.broadcast_address
10769
ipaddress._BaseNetwork.hostmask
108-
itertools.tee
10970
logging.FileHandler.__init__
11071
logging.handlers.BaseRotatingHandler.__init__
11172
logging.handlers.RotatingFileHandler.__init__
11273
logging.handlers.TimedRotatingFileHandler.__init__
11374
logging.handlers.WatchedFileHandler.__init__
114-
lzma.LZMACompressor.compress
115-
lzma.is_check_supported
116-
macpath
117-
macurl2path # removed in 3.7
118-
mmap.MADV_AUTOSYNC
119-
mmap.MADV_CORE
120-
mmap.MADV_NOCORE
121-
mmap.MADV_NOSYNC
122-
mmap.MADV_PROTECT
123-
mmap.MADV_SOFT_OFFLINE
75+
macpath # module removed in 3.8
76+
macurl2path # module removed in 3.7
77+
mmap.MADV_[A-Z_]+ # platform dependent constants
12478
multiprocessing.managers.SharedMemoryServer.__init__
12579
multiprocessing.pool.CLOSE
12680
multiprocessing.pool.RUN
@@ -130,37 +84,15 @@ nntplib.NNTP.starttls
13084
os.MFD_HUGE_32MB
13185
os.MFD_HUGE_512MB
13286
os.getgrouplist
133-
os.initgroups
134-
os.pipe2
135-
os.posix_fadvise
136-
os.posix_fallocate
137-
os.sched_getaffinity
138-
os.sched_getparam
139-
os.sched_getscheduler
140-
os.sched_rr_get_interval
141-
os.sched_setaffinity
142-
os.sched_setparam
143-
os.sched_setscheduler
14487
os.sendfile
145-
os.setresgid
146-
os.setresuid
147-
os.waitid
148-
pickle.Pickler.dump
14988
pickle.Pickler.reducer_override
150-
pickle.loads
15189
platform.DEV_NULL
15290
platform.uname_result.__new__
15391
platform.uname_result._fields
15492
platform.uname_result.processor
155-
pwd.getpwnam
156-
pwd.getpwuid
15793
queue.SimpleQueue.__init__
158-
random.SystemRandom.getrandbits
15994
secrets.SystemRandom.getstate
160-
secrets.SystemRandom.getrandbits
161-
secrets.compare_digest
162-
signal.sigtimedwait
163-
signal.sigwaitinfo
95+
select.epoll.register
16496
smtplib.LMTP.__init__
16597
smtplib.SMTP.sendmail
16698
sre_constants.RANGE_IGNORE
@@ -172,13 +104,12 @@ sys.UnraisableHookArgs
172104
threading.ExceptHookArgs
173105
time.CLOCK_PROF
174106
time.CLOCK_UPTIME
175-
trace.Trace.runfunc
176107
types.ClassMethodDescriptorType.__get__
177108
types.CodeType.replace
109+
types.GenericAlias.__getattr__
178110
types.MethodDescriptorType.__get__
179111
types.WrapperDescriptorType.__get__
180-
typing.Annotated
181-
typing.NamedTuple
112+
typing.ForwardRef._evaluate
182113
typing.SupportsAbs.__init__
183114
typing.SupportsBytes.__init__
184115
typing.SupportsComplex.__init__
@@ -195,16 +126,78 @@ typing._TypedDict.pop
195126
typing._TypedDict.setdefault
196127
typing._TypedDict.update
197128
typing._TypedDict.values
198-
unittest.TestCase.addCleanup
199-
unittest.case.TestCase.addCleanup
200129
unittest.doModuleCleanups
201-
weakref.WeakValueDictionary.__init__
202130
weakref.WeakValueDictionary.update
203-
weakref.getweakrefcount
204131
webbrowser.Opera.raise_opts
205-
xml.etree.ElementTree.Element.getchildren
206-
xml.etree.ElementTree.Element.getiterator
207-
xml.etree.ElementTree.ElementTree.getiterator
208132
xml.etree.ElementTree.XMLParser.__init__
209-
xml.etree.cElementTree
133+
xml.etree.cElementTree.XMLParser.__init__
134+
135+
# positional-only complaints
136+
builtins.bytearray.pop
137+
builtins.bytearray.remove
138+
bz2.BZ2Compressor.compress
139+
bz2.BZ2File.read
140+
bz2.BZ2File.read1
141+
bz2.BZ2File.readline
142+
bz2.BZ2File.seek
143+
codecs.lookup
144+
codecs.lookup_error
145+
codecs.register
146+
collections.AsyncGenerator.asend
147+
collections.AsyncGenerator.athrow
148+
collections.Container.__contains__
149+
collections.Coroutine.send
150+
collections.Coroutine.throw
151+
collections.Generator.send
152+
collections.Generator.throw
153+
collections.OrderedDict.fromkeys
154+
collections.OrderedDict.setdefault
155+
collections.abc.AsyncGenerator.asend
156+
collections.abc.AsyncGenerator.athrow
157+
collections.abc.Container.__contains__
158+
collections.abc.Coroutine.send
159+
collections.abc.Coroutine.throw
160+
collections.abc.Generator.send
161+
collections.abc.Generator.throw
162+
concurrent.futures.Executor.submit
163+
concurrent.futures.ProcessPoolExecutor.submit
164+
concurrent.futures.ThreadPoolExecutor.submit
165+
concurrent.futures._base.Executor.submit
166+
concurrent.futures.process.ProcessPoolExecutor.submit
167+
concurrent.futures.thread.ThreadPoolExecutor.submit
168+
contextlib.AbstractContextManager.__exit__
169+
contextlib.AsyncExitStack.callback
170+
contextlib.AsyncExitStack.push_async_callback
171+
contextlib.ExitStack.callback
172+
contextvars.ContextVar.reset
173+
contextvars.ContextVar.set
174+
dataclasses.dataclass
175+
dataclasses.replace
176+
hmac.compare_digest
177+
io.IncrementalNewlineDecoder.setstate
178+
itertools.tee
179+
lzma.LZMACompressor.compress
180+
lzma.is_check_supported
181+
os.initgroups
182+
os.pipe2
183+
os.posix_fadvise
184+
os.posix_fallocate
185+
os.sched_getaffinity
186+
os.sched_getparam
187+
os.sched_getscheduler
188+
os.sched_rr_get_interval
189+
os.sched_setaffinity
190+
os.sched_setparam
191+
os.sched_setscheduler
192+
os.setresgid
193+
os.setresuid
194+
os.waitid
195+
pwd.getpwnam
196+
pwd.getpwuid
197+
random.SystemRandom.getrandbits
198+
secrets.SystemRandom.getrandbits
199+
secrets.compare_digest
200+
signal.sigtimedwait
201+
signal.sigwaitinfo
202+
trace.Trace.runfunc
210203
zipfile.ZipExtFile.seek

0 commit comments

Comments
 (0)