Drop support for Python 3.5 (#4675)

Python 3.5 EOL was on 2020-09-30.
This commit is contained in:
Sebastian Rittau
2020-11-02 16:18:20 +01:00
committed by GitHub
parent 57b86e0e71
commit d2a7889fe0
64 changed files with 546 additions and 1174 deletions

View File

@@ -3,7 +3,7 @@
stubtest is a script in the mypy project that compares stubs to the actual objects at runtime.
Note that therefore the output of stubtest depends on which Python version it is run with.
In typeshed CI, we run stubtest with each Python minor version from 3.5 through 3.9 inclusive.
In typeshed CI, we run stubtest with each currently supported Python minor version, except 2.7.
We pin the version of mypy / stubtest we use in .travis.yml so changes to those don't break
typeshed CI.

View File

@@ -1,5 +0,0 @@
asyncio.unix_events._UnixSelectorEventLoop.create_unix_server
pwd.getpwnam
socket.NETLINK_CRYPTO
ssl.PROTOCOL_SSLv3
ssl.RAND_egd

View File

@@ -1,81 +0,0 @@
asyncio.Future._callbacks
asyncio.Future._exception
asyncio.Future._loop
asyncio.Future._tb_logger
asyncio.Task.__init__
asyncio.Task._wakeup
asyncio.base_futures # Added in Python 3.6
asyncio.base_tasks # Added in Python 3.6
asyncio.exceptions # Added in Python 3.8
asyncio.format_helpers # Added in Python 3.7
asyncio.futures.Future._callbacks
asyncio.futures.Future._exception
asyncio.futures.Future._loop
asyncio.futures.Future._tb_logger
asyncio.futures._TracebackLogger.__init__
asyncio.runners
asyncio.staggered # Added in Python 3.8
asyncio.tasks.Task.__init__
asyncio.tasks.Task._wakeup
asyncio.threads # Added in Python 3.9
asyncio.trsock # Added in Python 3.8
bdb.GENERATOR_AND_COROUTINE_FLAGS
builtins.ModuleNotFoundError
builtins.str.maketrans
cmath.log
codecs.StreamRecoder.seek
collections.Reversible
collections.UserString.maketrans
contextlib._GeneratorContextManager.__init__
ctypes.CDLL.__init__
fractions.Fraction.__new__ # private _normalize param was made keyword-only in Python 3.6
hmac.HMAC.__init__
importlib.metadata
importlib.resources
io.StringIO.readline
ipaddress._BaseNetwork.__init__
json.dump
json.dumps
json.load
json.loads
mmap.ACCESS_DEFAULT
multiprocessing.context.BaseContext.reducer
multiprocessing.shared_memory
nntplib._NNTPBase.starttls
os.DirEntry
os.utime
plistlib.Dict.__init__
pyexpat.XMLParserType.ExternalEntityParserCreate
random.Random.randrange # missing undocumented arg _int
random.randrange # missing undocumented arg _int
smtpd.SMTPChannel.__init__
smtpd.SMTPServer.__init__
sre_compile.dis
ssl.SSLSocket.__init__
tarfile.TarFile.__init__ # undocumented arg copybufsize doesn't exist
typing.Coroutine.cr_await
typing.Coroutine.cr_code
typing.Coroutine.cr_frame
typing.Coroutine.cr_running
typing.Generator.__new__
typing.Generator.gi_code
typing.Generator.gi_frame
typing.Generator.gi_running
typing.Generator.gi_yieldfrom
typing.GenericMeta.__new__
typing.IO.closed # Incorrect definition in CPython, fixed in bpo-39493
typing.Mapping.get
typing.NamedTuple.__new__
typing.NamedTuple._asdict
typing.NamedTuple._make
typing.NamedTuple._replace
typing.Sequence.index
typing.runtime_checkable
unittest.async_case # Added in Python 3.8
uuid.UUID.int
xml.etree.ElementTree.TreeBuilder.start # Discrepancy between Python and C modules, fixed in bpo-39495
xml.etree.cElementTree.TreeBuilder.start # bpo-39495
xml.etree.cElementTree.XMLPullParser
xml.parsers.expat.XMLParserType.ExternalEntityParserCreate
zipfile.ZipFile.open
zlib.compress

View File

@@ -1 +0,0 @@
posixpath.splitunc # This doesn't exist, but our hands are tied by check_consistent