Skip to content

Commit bdb149d

Browse files
authored
stubtest: update version, whitelists (#4088)
This is for python/mypy#8886
1 parent 7ac284f commit bdb149d

File tree

6 files changed

+105
-5
lines changed

6 files changed

+105
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ jobs:
3131
script: flake8
3232
- name: "stubtest py38"
3333
python: 3.8
34-
install: pip install -U git+git://github.com/python/mypy@0a05e61a
34+
install: pip install -U git+git://github.com/python/mypy@b3d43984
3535
script: ./tests/stubtest_test.py
3636
- name: "stubtest py37"
3737
python: 3.7
38-
install: pip install -U git+git://github.com/python/mypy@0a05e61a
38+
install: pip install -U git+git://github.com/python/mypy@b3d43984
3939
script: ./tests/stubtest_test.py
4040
- name: "stubtest py36"
4141
python: 3.6
42-
install: pip install -U git+git://github.com/python/mypy@0a05e61a
42+
install: pip install -U git+git://github.com/python/mypy@b3d43984
4343
script: ./tests/stubtest_test.py
4444
- name: "stubtest py35"
4545
python: 3.5
46-
install: pip install -U git+git://github.com/python/mypy@0a05e61a
46+
install: pip install -U git+git://github.com/python/mypy@b3d43984
4747
script: ./tests/stubtest_test.py
4848
allow_failures:
4949
- name: "stubtest py39"
5050
python: 3.9-dev
51-
install: pip install -U git+git://github.com/python/mypy
51+
install: pip install -U git+git://github.com/python/mypy@b3d43984
5252
script: ./tests/stubtest_test.py

tests/stubtest_whitelists/py35.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cmath.log
2020
codecs.StreamRecoder.seek
2121
collections.Reversible
2222
collections.UserString.maketrans
23+
contextlib._GeneratorContextManager.__init__
2324
ctypes.CDLL.__init__
2425
fractions.Fraction.__new__ # private _normalize param was made keyword-only in Python 3.6
2526
gettext.NullTranslations.npgettext
@@ -43,20 +44,24 @@ multiprocessing.context.BaseContext.reducer
4344
multiprocessing.shared_memory
4445
os.DirEntry
4546
os.utime
47+
plistlib.Dict.__init__
4648
pyexpat.XMLParserType.ExternalEntityParserCreate
4749
smtpd.SMTPChannel.__init__
4850
smtpd.SMTPServer.__init__
4951
socket.NETLINK_CRYPTO
5052
sre_compile.dis
53+
ssl.SSLSocket.__init__
5154
typing.AbstractSet.isdisjoint
5255
typing.Coroutine.cr_await
5356
typing.Coroutine.cr_code
5457
typing.Coroutine.cr_frame
5558
typing.Coroutine.cr_running
59+
typing.Generator.__new__
5660
typing.Generator.gi_code
5761
typing.Generator.gi_frame
5862
typing.Generator.gi_running
5963
typing.Generator.gi_yieldfrom
64+
typing.GenericMeta.__new__
6065
typing.Mapping.get
6166
typing.MutableMapping.pop
6267
typing.MutableMapping.setdefault
@@ -67,6 +72,7 @@ typing.MutableSequence.remove
6772
typing.MutableSet.add
6873
typing.MutableSet.discard
6974
typing.MutableSet.remove
75+
typing.NamedTuple.__new__
7076
typing.Sequence.count
7177
typing.Sequence.index
7278
typing.runtime_checkable

tests/stubtest_whitelists/py36.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ collections.abc.AsyncGenerator.ag_await
1616
collections.abc.AsyncGenerator.ag_code
1717
collections.abc.AsyncGenerator.ag_frame
1818
collections.abc.AsyncGenerator.ag_running
19+
contextlib._GeneratorContextManager.__init__
1920
copy.PyStringMap
2021
ctypes.CDLL.__init__
2122
email.message.MIMEPart.as_string
@@ -37,10 +38,12 @@ logging.handlers.MemoryHandler.__init__
3738
mmap.ACCESS_DEFAULT
3839
multiprocessing.shared_memory
3940
os.utime
41+
plistlib.Dict.__init__
4042
pyexpat.XMLParserType.ExternalEntityParserCreate
4143
secrets.SystemRandom.getstate
4244
smtplib.SMTP.sendmail
4345
sre_compile.dis
46+
ssl.SSLSocket.__init__
4447
tkinter.Menu.tk_bindForTraversal
4548
tkinter.Misc.tk_menuBar
4649
typing.AbstractSet.isdisjoint
@@ -52,10 +55,12 @@ typing.Coroutine.cr_await
5255
typing.Coroutine.cr_code
5356
typing.Coroutine.cr_frame
5457
typing.Coroutine.cr_running
58+
typing.Generator.__new__
5559
typing.Generator.gi_code
5660
typing.Generator.gi_frame
5761
typing.Generator.gi_running
5862
typing.Generator.gi_yieldfrom
63+
typing.GenericMeta.__new__
5964
typing.Mapping.get
6065
typing.MutableMapping.pop
6166
typing.MutableMapping.setdefault
@@ -66,6 +71,7 @@ typing.MutableSequence.remove
6671
typing.MutableSet.add
6772
typing.MutableSet.discard
6873
typing.MutableSet.remove
74+
typing.NamedTuple.__new__
6975
typing.Sequence.count
7076
typing.Sequence.index
7177
typing.runtime_checkable

tests/stubtest_whitelists/py37.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ contextvars.Context.__init__
2929
contextvars.Context.get
3030
copy.PyStringMap
3131
ctypes.CDLL.__init__
32+
dataclasses.Field.__init__
3233
dataclasses.field
3334
email.message.MIMEPart.as_string
3435
enum.Enum._generate_next_value_
@@ -59,6 +60,8 @@ tkinter.Misc.tk_menuBar
5960
types.ClassMethodDescriptorType.__get__
6061
types.MethodDescriptorType.__get__
6162
types.WrapperDescriptorType.__get__
63+
typing._SpecialForm.__init__
64+
typing._SpecialForm.__new__
6265
typing.runtime_checkable
6366
unittest.async_case
6467
urllib.parse.parse_qs

tests/stubtest_whitelists/py38.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ _thread._ExceptHookArgs
33
_tracemalloc._get_object_traceback
44
_tracemalloc.start
55
_weakref.getweakrefcount
6+
ast.Bytes.__new__
7+
ast.Ellipsis.__new__
8+
ast.NameConstant.__new__
9+
ast.Num.__new__
10+
ast.Str.__new__
611
asyncio.AbstractEventLoop.sock_sendfile
712
asyncio.Future.__init__
813
asyncio.Future._callbacks
@@ -63,6 +68,8 @@ contextvars.Context.get
6368
contextvars.ContextVar.reset
6469
contextvars.ContextVar.set
6570
copy.PyStringMap
71+
dataclasses.Field.__init__
72+
dataclasses.InitVar.__init__
6673
dataclasses.dataclass
6774
dataclasses.field
6875
dataclasses.replace
@@ -92,6 +99,7 @@ lzma.is_check_supported
9299
macpath
93100
macurl2path
94101
mmap.MADV_[A-Z_]+
102+
multiprocessing.managers.SharedMemoryServer.__init__
95103
multiprocessing.pool.CLOSE
96104
multiprocessing.pool.RUN
97105
multiprocessing.pool.TERMINATE
@@ -136,6 +144,16 @@ types.ClassMethodDescriptorType.__get__
136144
types.CodeType.replace
137145
types.MethodDescriptorType.__get__
138146
types.WrapperDescriptorType.__get__
147+
typing.NamedTuple.__new__
148+
typing.SupportsAbs.__init__
149+
typing.SupportsBytes.__init__
150+
typing.SupportsComplex.__init__
151+
typing.SupportsFloat.__init__
152+
typing.SupportsIndex.__init__
153+
typing.SupportsInt.__init__
154+
typing.SupportsRound.__init__
155+
typing._SpecialForm.__init__
156+
typing._SpecialForm.__new__
139157
unittest.TestCase.addCleanup
140158
unittest.case.TestCase.addCleanup
141159
unittest.doModuleCleanups

0 commit comments

Comments
 (0)