__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.maketrans
builtins.bytearray.remove
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.__new__
codecs.CodecInfo.decode
codecs.CodecInfo.encode
codecs.CodecInfo.incrementaldecoder
codecs.CodecInfo.incrementalencoder
codecs.CodecInfo.streamreader
codecs.CodecInfo.streamwriter
codecs.EncodedFile
codecs.IncrementalDecoder.decode
codecs.IncrementalEncoder.encode
codecs.StreamReader.__getattr__
codecs.StreamReader.readline
codecs.StreamReader.readlines
codecs.StreamWriter.__getattr__
codecs.StreamWriter.write
codecs.open
codecs.register_error
codecs.utf_16_be_decode
codecs.utf_16_be_encode
collections.Callable
collections.ChainMap.get
collections.ChainMap.maps
collections.ChainMap.new_child
collections.ChainMap.pop
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.MutableMapping.pop
collections.MutableMapping.setdefault
collections.MutableSequence.append
collections.MutableSequence.extend
collections.MutableSequence.insert
collections.MutableSequence.remove
collections.MutableSet.add
collections.MutableSet.discard
collections.MutableSet.remove
collections.Sequence.count
collections.Sequence.index
collections.Set.isdisjoint
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.MutableMapping.pop
collections.abc.MutableMapping.setdefault
collections.abc.MutableSequence.append
collections.abc.MutableSequence.extend
collections.abc.MutableSequence.insert
collections.abc.MutableSequence.remove
collections.abc.MutableSet.add
collections.abc.MutableSet.discard
collections.abc.MutableSet.remove
collections.abc.Sequence.count
collections.abc.Sequence.index
collections.abc.Set.isdisjoint
collections.deque.__hash__
concurrent.futures.Executor.map
concurrent.futures._base.Executor.map
concurrent.futures.ProcessPoolExecutor.map
concurrent.futures.process.ProcessPoolExecutor.map
configparser.LegacyInterpolation.before_get
configparser.SectionProxy.__getattr__
configparser.SectionProxy.getboolean
configparser.SectionProxy.getfloat
configparser.SectionProxy.getint
contextlib.ContextManager
csv.Dialect.delimiter
csv.Dialect.doublequote
csv.Dialect.lineterminator
csv.Dialect.quoting
csv.Dialect.skipinitialspace
ctypes.Array.__iter__
ctypes.CDLL._FuncPtr
ctypes.cast
ctypes.create_string_buffer
ctypes.create_unicode_buffer
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.feedparser.BytesFeedParser.__init__
email.feedparser.FeedParser.__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__
hmac.HMAC.__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
imaplib.IMAP4_stream.open
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.BoundArguments.__init__
inspect.Parameter.replace
inspect.Signature.replace
inspect.getabsfile
inspect.getmodule
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
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.Array
multiprocessing.Event
multiprocessing.JoinableQueue
multiprocessing.Queue
multiprocessing.SimpleQueue
multiprocessing.Value
multiprocessing.context.BaseContext.Event
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.pool.Pool.imap
multiprocessing.pool.Pool.imap_unordered
multiprocessing.pool.Pool.map
multiprocessing.pool.Pool.map_async
multiprocessing.pool.Pool.starmap
multiprocessing.pool.Pool.starmap_async
multiprocessing.queues.JoinableQueue.__init__
multiprocessing.queues.Queue.__init__
multiprocessing.queues.Queue.put_nowait
multiprocessing.queues.SimpleQueue.__init__
multiprocessing.queues.SimpleQueue.put
multiprocessing.set_executable
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.find_class
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.Random.randrange
random.SystemRandom.getstate
random.randrange
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.register_adapters_and_converters
sqlite3.dbapi2.version_info
sqlite3.register_adapters_and_converters
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.__init__
tarfile.TarFile.errors
tarfile.TarFile.tarinfo
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
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.TestCase.assertAlmostEqual
unittest.TestCase.assertDictContainsSubset
unittest.TestCase.assertNotAlmostEqual
unittest.TestCase.assertSequenceEqual
unittest.TestLoader.loadTestsFromModule
unittest.TestProgram.__init__
unittest.TestResult.__init__
unittest.TestResult.addSubTest
unittest.TestRunner
unittest.TestSuite.run
unittest.case.TestCase.assertAlmostEqual
unittest.case.TestCase.assertDictContainsSubset
unittest.case.TestCase.assertNotAlmostEqual
unittest.case.TestCase.assertSequenceEqual
unittest.case.expectedFailure
unittest.expectedFailure
unittest.loader.TestLoader.loadTestsFromModule
unittest.main
unittest.mock.NonCallableMock.__init__
unittest.mock.NonCallableMock.__new__
unittest.removeHandler
unittest.result.TestResult.__init__
unittest.result.TestResult.addSubTest
unittest.runner.TestRunner
unittest.signals.removeHandler
unittest.suite.TestSuite.run
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.KeyedRef.__new__
weakref.ProxyType.__getattr__
weakref.ReferenceType.__call__
weakref.WeakKeyDictionary.__init__
weakref.WeakKeyDictionary.get
weakref.WeakKeyDictionary.pop
weakref.WeakKeyDictionary.setdefault
weakref.WeakKeyDictionary.update
weakref.WeakValueDictionary.get
weakref.WeakValueDictionary.pop
weakref.WeakValueDictionary.setdefault
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.etree.ElementTree.Element.__bool__
xml.etree.ElementTree.Element.copy
xml.sax.xmlreader.AttributesImpl.has_key
zipfile.ZipExtFile.read
zipfile.ZipExtFile.readline
zlib.compressobj

# ==========
# 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_]+)?
