Skip to content

Commit 097581e

Browse files
authored
Update to mypy 1.14 (#13272)
1 parent 8e31597 commit 097581e

File tree

43 files changed

+357
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+357
-79
lines changed

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
3-
mypy==1.13.0
3+
mypy==1.14.0
44
pyright==1.1.389
55
# pytype can be installed on Windows, but requires building wheels, let's not do that on the CI
66
pytype==2024.10.11; platform_system != "Windows" and python_version >= "3.10" and python_version < "3.13"

stdlib/@tests/stubtest_allowlists/common.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ _collections_abc.AsyncGenerator.ag_await
88
_collections_abc.AsyncGenerator.ag_code
99
_collections_abc.AsyncGenerator.ag_frame
1010
_collections_abc.AsyncGenerator.ag_running
11+
asyncio.__all__
1112
asyncio.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them
1213
asyncio.base_events.BaseEventLoop.subprocess_exec # BaseEventLoop adds several parameters and stubtest fails on the difference if we add them
1314
builtins.dict.get

stubs/PyYAML/@tests/stubtest_allowlist.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# TODO: missing from stub
2+
yaml.composer.__all__
3+
yaml.constructor.__all__
4+
yaml.dumper.__all__
5+
yaml.emitter.__all__
6+
yaml.error.__all__
7+
yaml.loader.__all__
8+
yaml.parser.__all__
9+
yaml.reader.__all__
10+
yaml.representer.__all__
11+
yaml.resolver.__all__
12+
yaml.scanner.__all__
13+
yaml.serializer.__all__
14+
115
# yaml._yaml is for backwards compatibility so none of it matters anyway
216
yaml._yaml.__test__
317

stubs/WTForms/@tests/stubtest_allowlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# TODO: missing from stub
2+
wtforms.form.__all__
3+
14
# Error: is not present at runtime
25
# =============================
36
# This is hack to get around Field.__new__ not being able to return

stubs/WebOb/@tests/stubtest_allowlist.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# TODO: missing from stub
2+
webob.__all__
3+
webob.byterange.__all__
4+
webob.client.__all__
5+
webob.cookies.__all__
6+
webob.datetime_utils.__all__
7+
webob.dec.__all__
8+
webob.etag.__all__
9+
webob.exc.__all__
10+
webob.headers.__all__
11+
webob.multidict.__all__
12+
webob.request.__all__
13+
webob.response.__all__
14+
webob.static.__all__
15+
116
# Error: is not present in stub
217
# =============================
318
# These are plain strings, regex strings or compiled regex patterns

stubs/aiofiles/@tests/stubtest_allowlist.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# TODO: missing from stub
2+
aiofiles.__all__
3+
aiofiles.tempfile.__all__
4+
aiofiles.threadpool.__all__
5+
16
# These all delegate using *args,**kwargs, but stubs use signature of
27
# method they are being delegated to.
38
aiofiles.threadpool.binary.AsyncBufferedIOBase.close
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1+
# TODO: missing from stub
2+
boltons.debugutils.__all__
3+
boltons.dictutils.__all__
4+
boltons.excutils.__all__
5+
boltons.fileutils.__all__
6+
boltons.formatutils.__all__
7+
boltons.gcutils.__all__
8+
boltons.jsonutils.__all__
9+
boltons.listutils.__all__
10+
boltons.namedutils.__all__
11+
boltons.pathutils.__all__
12+
boltons.queueutils.__all__
13+
boltons.setutils.__all__
14+
boltons.strutils.__all__
15+
boltons.tableutils.__all__
16+
boltons.tbutils.__all__
17+
118
boltons.funcutils.CachedInstancePartial.__partialmethod__
219
boltons.funcutils.InstancePartial.__partialmethod__

stubs/cffi/@tests/stubtest_allowlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# TODO: missing from stub
2+
cffi.__all__
3+
14
# added dynamically and not detected by stubtest
25
cffi.(api.)?FFI.CData
36
cffi.(api.)?FFI.CType
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# TODO: missing from stub
2+
click_default_group.__all__
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# TODO: missing from stub
2+
consolemenu.__all__
3+
consolemenu.format.__all__
4+
consolemenu.items.__all__

0 commit comments

Comments
 (0)