__future__._Feature.__init__
_csv.Dialect.__init__
_dummy_threading
_importlib_modulespec
_operator.methodcaller
_threading_local.local.__new__
_typeshed.*  # Utility types for typeshed, doesn't exist at runtime
_weakref.CallableProxyType.__getattr__
_weakref.ProxyType.__getattr__
_weakref.ReferenceType.__call__
abc.ABCMeta.__new__
abc.abstractclassmethod
abc.abstractmethod
abc.abstractstaticmethod
argparse.Namespace.__getattr__  # The whole point of this class is its attributes are dynamic
asyncio.BaseEventLoop.subprocess_exec
asyncio.Condition.acquire
asyncio.Condition.locked
asyncio.Condition.release
asyncio.Task.get_stack
asyncio.Task.print_stack
asyncio.base_events.BaseEventLoop.subprocess_exec
asyncio.base_events.Server.__init__
asyncio.locks.Condition.acquire
asyncio.locks.Condition.locked
asyncio.locks.Condition.release
asyncio.proactor_events.BaseProactorEventLoop.sock_recv
asyncio.selector_events.BaseSelectorEventLoop.sock_recv
asyncio.streams.FlowControlMixin.__init__
asyncio.tasks.Task.get_stack
asyncio.tasks.Task.print_stack
builtins.bytearray.__float__
builtins.bytearray.__int__
builtins.bytearray.append
builtins.bytearray.extend
builtins.bytearray.maketrans
builtins.bytes.__float__
builtins.bytes.__int__
builtins.bytes.maketrans
builtins.classmethod.__get__
builtins.complex.__complex__
builtins.ellipsis
builtins.function
builtins.memoryview.__contains__
builtins.memoryview.__iter__
builtins.memoryview.cast
builtins.object.__init__
builtins.property.__get__
builtins.property.fdel
builtins.property.fget
builtins.property.fset
builtins.staticmethod.__get__
bz2.BZ2Decompressor.__init__
bz2.BZ2File.readinto
bz2.BZ2File.readlines
bz2.BZ2File.write
bz2.BZ2File.writelines
codecs.BufferedIncrementalDecoder.decode
codecs.CodecInfo.decode
codecs.CodecInfo.encode
codecs.CodecInfo.incrementaldecoder
codecs.CodecInfo.incrementalencoder
codecs.CodecInfo.streamreader
codecs.CodecInfo.streamwriter
codecs.IncrementalEncoder.encode
codecs.StreamReader.__getattr__
codecs.StreamReader.readline
codecs.StreamReader.readlines
codecs.StreamWriter.__getattr__
codecs.StreamWriter.write
codecs.utf_16_be_decode
codecs.utf_16_be_encode
collections.Callable
collections.ChainMap.get
collections.ChainMap.maps
collections.ChainMap.new_child
collections.Coroutine.cr_await
collections.Coroutine.cr_code
collections.Coroutine.cr_frame
collections.Coroutine.cr_running
collections.Counter.fromkeys
collections.Generator.gi_code
collections.Generator.gi_frame
collections.Generator.gi_running
collections.Generator.gi_yieldfrom
collections.Mapping.get
collections.Sequence.index
collections.abc.Callable
collections.abc.Coroutine.cr_await
collections.abc.Coroutine.cr_code
collections.abc.Coroutine.cr_frame
collections.abc.Coroutine.cr_running
collections.abc.Generator.gi_code
collections.abc.Generator.gi_frame
collections.abc.Generator.gi_running
collections.abc.Generator.gi_yieldfrom
collections.abc.Mapping.get
collections.abc.Sequence.index
collections.deque.__hash__
configparser.LegacyInterpolation.before_get
configparser.SectionProxy.__getattr__
configparser.SectionProxy.getboolean
configparser.SectionProxy.getfloat
configparser.SectionProxy.getint
csv.Dialect.delimiter
csv.Dialect.doublequote
csv.Dialect.lineterminator
csv.Dialect.quoting
csv.Dialect.skipinitialspace
ctypes.Array.__iter__
ctypes.CDLL._FuncPtr
ctypes.cast
ctypes.memmove
ctypes.memset
ctypes.pointer
ctypes.string_at
ctypes.wstring_at
dbm.error
difflib.SequenceMatcher.__init__
distutils.archive_util.make_archive
distutils.archive_util.make_tarball
distutils.command.bdist_packager
distutils.core.Extension.__init__
distutils.debug.DEBUG
distutils.extension.Extension.__init__
distutils.fancy_getopt.OptionDummy.__init__
distutils.filelist.FileList.__init__
distutils.sysconfig.set_python_build
distutils.text_file.TextFile.warn
distutils.version.Version._cmp
distutils.version.Version.parse
email.errors.MessageDefect.__init__
email.generator.BytesGenerator.__init__
email.generator.DecodedGenerator.__init__
email.generator.Generator.__init__
email.headerregistry.AddressHeader.parse
email.headerregistry.BaseHeader.init
email.headerregistry.BaseHeader.max_count
email.headerregistry.ContentTransferEncodingHeader.parse
email.headerregistry.DateHeader.parse
email.headerregistry.HeaderRegistry.__init__
email.headerregistry.MIMEVersionHeader.parse
email.headerregistry.ParameterizedMIMEHeader.parse
email.headerregistry.UnstructuredHeader.parse
email.message.MIMEPart.__init__
email.message.Message.get_payload
email.message.Message.set_param
email.parser.HeaderParser.__init__
email.parser.Parser.__init__
email.utils.localtime
email.utils.mktime_tz
email.utils.parseaddr
email.utils.parsedate
email.utils.parsedate_to_datetime
email.utils.parsedate_tz
encodings.utf_8.IncrementalDecoder._buffer_decode
encodings.utf_8.StreamReader.decode
encodings.utf_8.StreamWriter.encode
encodings.utf_8.encode
enum.EnumMeta.__call__
enum.EnumMeta.__new__
getopt.GetoptError.__init__
html.parser.HTMLParser.feed
http.HTTPStatus.description
http.HTTPStatus.phrase
http.client.BadStatusLine.__init__
http.client.HTTPResponse.read1
http.client.HTTPResponse.readinto
http.client.HTTPResponse.readline
http.client.IncompleteRead.__init__
http.client.LineTooLong.__init__
http.client.UnknownProtocol.__init__
http.cookiejar.Cookie.is_expired
http.cookiejar.CookieJar.clear
http.cookiejar.FileCookieJar.__init__
http.cookies.Morsel.__init__
http.cookies.Morsel.setdefault
http.cookies.Morsel.update
http.server.HTTPServer.__init__
imaplib.IMAP4_SSL.ssl
importlib.abc.FileLoader.get_filename
importlib.abc.Loader.exec_module
importlib.abc.MetaPathFinder.find_spec
importlib.abc.PathEntryFinder.find_spec
importlib.machinery.BuiltinImporter.find_module
importlib.machinery.BuiltinImporter.find_spec
importlib.machinery.ExtensionFileLoader.__init__
importlib.machinery.ExtensionFileLoader.get_filename
importlib.machinery.FrozenImporter.find_module
importlib.machinery.FrozenImporter.find_spec
importlib.machinery.FrozenImporter.module_repr
importlib.machinery.SourceFileLoader.set_data
importlib.machinery.WindowsRegistryFinder.find_module
importlib.machinery.WindowsRegistryFinder.find_spec
importlib.util.spec_from_file_location
importlib.util.spec_from_loader
inspect.Parameter.KEYWORD_ONLY
inspect.Parameter.POSITIONAL_ONLY
inspect.Parameter.POSITIONAL_OR_KEYWORD
inspect.Parameter.VAR_KEYWORD
inspect.Parameter.VAR_POSITIONAL
inspect.Parameter.replace
inspect.Signature.replace
io.BufferedRandom.truncate
io.BufferedReader.seek
io.BufferedReader.truncate
io.BufferedWriter.seek
io.BufferedWriter.truncate
io.BytesIO.readlines
io.BytesIO.seek  # Parameter name for a positional-only param differs from its name in the inherited method
io.FileIO.seek
io.StringIO.seek
io.StringIO.truncate
io.TextIOWrapper.truncate
ipaddress._BaseAddress.is_global
ipaddress._BaseAddress.is_link_local
ipaddress._BaseAddress.is_loopback
ipaddress._BaseAddress.is_multicast
ipaddress._BaseAddress.is_private
ipaddress._BaseAddress.is_reserved
ipaddress._BaseAddress.is_unspecified
ipaddress._BaseAddress.max_prefixlen
ipaddress._BaseAddress.packed
ipaddress._BaseNetwork.max_prefixlen
itertools.accumulate
itertools.chain.from_iterable
itertools.combinations_with_replacement
itertools.compress
itertools.count
itertools.dropwhile
itertools.filterfalse
itertools.permutations
itertools.starmap
itertools.takewhile
itertools.zip_longest
lib2to3.pygram.pattern_symbols
lib2to3.pygram.python_symbols
lib2to3.pytree.Base.__new__
lib2to3.pytree.Base.children
lib2to3.pytree.Base.type
lib2to3.pytree.BasePattern.__new__
lib2to3.pytree.BasePattern.type
lib2to3.pytree.NegatedPattern.match
lib2to3.pytree.NegatedPattern.match_seq
mailbox.Babyl.__init__
mailbox.MH.__init__
mailbox.MMDF.__init__
mailbox._mboxMMDF.get_bytes
mailbox._mboxMMDF.get_file
mailbox._mboxMMDF.get_string
mailbox.mbox.__init__
mimetypes.read_mime_types
mmap.mmap.__iter__
multiprocessing.JoinableQueue
multiprocessing.Queue
multiprocessing.SimpleQueue
multiprocessing.managers.BaseManager.shutdown
multiprocessing.managers.Server.__init__
multiprocessing.managers.SyncManager.Event
multiprocessing.managers.SyncManager.Lock
multiprocessing.managers.SyncManager.Namespace
multiprocessing.managers.SyncManager.RLock
multiprocessing.pool.ApplyResult.__init__
multiprocessing.pool.IMapIterator.__init__
multiprocessing.pool.MapResult.__init__
multiprocessing.queues.JoinableQueue.__init__
multiprocessing.queues.Queue.__init__
multiprocessing.queues.Queue.put_nowait
multiprocessing.queues.SimpleQueue.__init__
multiprocessing.queues.SimpleQueue.put
multiprocessing.synchronize.Barrier.__init__
multiprocessing.synchronize.Condition.acquire
multiprocessing.synchronize.Condition.release
multiprocessing.synchronize.Event.__init__
multiprocessing.synchronize.SemLock.__init__
multiprocessing.synchronize.SemLock.acquire
multiprocessing.synchronize.SemLock.release
netrc.NetrcParseError.__init__
netrc.netrc.__init__
ntpath.join
numbers.Number.__hash__
operator.methodcaller
optparse.HelpFormatter._format__Text
optparse.OptionParser.__init__
optparse.Values.__getattr__
optparse.Values.read_file
optparse.Values.read_module
os._Environ.__init__
os._Environ.setdefault
os._wrap_close.__init__
pickle.Pickler.persistent_id
pickle.Unpickler.persistent_load
pipes.Template.copy
pkgutil.ImpImporter.__init__
poplib.POP3_SSL.stls
pydoc.HTMLDoc.docdata
pydoc.HTMLDoc.docproperty
pydoc.HTMLDoc.docroutine
pydoc.TextDoc.docdata
pydoc.TextDoc.docmodule
pydoc.TextDoc.docother
pydoc.TextDoc.docproperty
pydoc.TextDoc.docroutine
random.SystemRandom.getstate
re.error.__init__
runpy.run_path
sched.Event.__doc__
select.poll
selectors.DevpollSelector
selectors.KqueueSelector
shlex.shlex.__init__
shlex.shlex.error_leader
shlex.shlex.sourcehook
shutil.register_unpack_format
signal.SIGEMT
signal.SIGINFO
smtpd.MailmanProxy.process_message
smtpd.PureProxy.process_message
smtplib.SMTP.send_message
socketserver.BaseServer.fileno
socketserver.BaseServer.get_request
socketserver.BaseServer.server_bind
sqlite3.Row.__len__
sqlite3.dbapi2.Row.__len__
sqlite3.dbapi2.version_info
sqlite3.version_info
sre_constants.error.__init__
ssl.PROTOCOL_SSLv2
ssl.Purpose.__new__
ssl.SSLContext.__new__
ssl.SSLObject.__init__
ssl.SSLSocket.connect
ssl.SSLSocket.connect_ex
ssl.SSLSocket.recv
ssl.SSLSocket.recv_into
ssl.SSLSocket.recvfrom
ssl.SSLSocket.recvfrom_into
ssl.SSLSocket.sendto
ssl._ASN1Object.__new__
subprocess.Popen.__init__
sunau.Au_write.getmark
sunau.Au_write.getmarkers
sunau.Au_write.setcomptype
sunau.Au_write.setmark
symtable.Symbol.__init__
symtable.SymbolTable.__init__
sys.gettotalrefcount
sys.implementation
sysconfig.is_python_build
sysconfig.parse_config_h
tarfile.TarFile.errors
tempfile.SpooledTemporaryFile.__next__
tempfile.SpooledTemporaryFile.readable
tempfile.SpooledTemporaryFile.seekable
tempfile.SpooledTemporaryFile.writable
threading.Condition.acquire
threading.Condition.release
threading.Lock
threading.Semaphore.__enter__
threading.Semaphore.acquire
threading.Thread.__init__
timeit.main
tkinter.Misc.grid_propagate
tkinter.Misc.pack_propagate
tkinter.Tk.report_callback_exception  # A bit of a lie, since it's actually a method, but typing it as an attribute allows it to be assigned to
trace.CoverageResults.__init__
traceback.FrameSummary.__init__
traceback.TracebackException.__init__
traceback.TracebackException.from_exception
types.GetSetDescriptorType.__get__
types.GetSetDescriptorType.__set__
types.MemberDescriptorType.__get__
types.MemberDescriptorType.__set__
types.SimpleNamespace.__init__
types.coroutine
types.new_class
types.prepare_class
typing.AwaitableGenerator
typing.IO.__iter__
typing.IO.__next__
typing.type_check_only
unittest.mock.patch  # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
urllib.error.ContentTooShortError.__init__
urllib.error.URLError.__init__
urllib.parse._DefragResultBase.__new__
urllib.request.BaseHandler.http_error_nnn
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__
urllib.robotparser.RobotFileParser.can_fetch
warnings.catch_warnings.__init__
weakref.CallableProxyType.__getattr__
weakref.ProxyType.__getattr__
weakref.ReferenceType.__call__
weakref.WeakKeyDictionary.get
weakref.WeakKeyDictionary.update
weakref.WeakValueDictionary.get
webbrowser.Mozilla.raise_opts
webbrowser.UnixBrowser.raise_opts
webbrowser.UnixBrowser.remote_action
webbrowser.UnixBrowser.remote_action_newtab
webbrowser.UnixBrowser.remote_action_newwin
wsgiref.types  # Doesn't exist, see comments in file
xml.etree.ElementPath._SelectorContext.parent_map
xml.sax.xmlreader.AttributesImpl.has_key
zipfile.ZipExtFile.read
zipfile.ZipExtFile.readline
zlib.compressobj

# These enums derive from (int, IntEnum) or (str, Enum). Strangely,
# at runtime, they inherit Enum.__new__, not int.__new__ or
# str.__new__ as the mro would dictate, which is why stubtest balks.
enum.IntEnum.__new__
http.HTTPStatus.__new__
inspect._ParameterKind.__new__
signal.Handlers.__new__
signal.Sigmasks.__new__
signal.Signals.__new__
socket.AddressFamily.__new__
socket.SocketKind.__new__

# ==========
# Whitelist entries that cannot or should not be fixed
# ==========
_pydecimal.*  # See comments in file
ast.NodeVisitor.visit_\w+  # Methods are discovered dynamically, see #3796
# Weird special builtins that are typed as functions, but aren't functions
builtins.copyright
builtins.credits
builtins.exit
builtins.help
builtins.license
builtins.quit
# Builtins that mypy pretends exist
builtins.reveal_locals
builtins.reveal_type
# Various classes in typing aren't types at runtime. In addition, mypy thinks some special forms are tautologically defined.
typing.[A-Z]\w+
# We can't distinguish not having a default value from having a default value of inspect.Parameter.empty
inspect.Parameter.__init__
inspect.Signature.__init__
# Any field can be set on Namespace
multiprocessing.(dummy|managers).Namespace.__[gs]etattr__
os.[a-z]+_(param|result)._(asdict|make|replace)  # NamedTuple like, but not actually NamedTuples
# sys attributes that are not always defined
sys.last_traceback
sys.last_type
sys.last_value
sys.ps1
sys.ps2
sys.tracebacklimit
# See comments in file. List out methods that are delegated by __getattr__ at runtime.
# Used to make the relevant class satisfy BinaryIO interface.
codecs.StreamReaderWriter.\w+
codecs.StreamRecoder.\w+
urllib.response.addbase.\w+

# Platform differences that cannot be captured by the type system
errno.[A-Z0-9]+
os.O_[A-Z_]+
(posix.O_[A-Z_]+)?
(posix.ST_[A-Z]+)?
socket.AF_DECnet
socket.[A-Z0-9_]+
(termios.[A-Z0-9_]+)?
