File tree 3 files changed +7
-44
lines changed 3 files changed +7
-44
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def is_valid_value_type(value: util.stream.ArbitraryReceiveChannel[typing.Any])
26
26
Unfortunately this cannot check whether iterators return the correct types,
27
27
so the utility of this function unfortunately is limited to some extent.
28
28
"""
29
- return isinstance (value , ( # type: ignore[misc ] # “Should be always true…”
29
+ return isinstance (value , ( # type: ignore[unreachable ] # “Should be always true…”
30
30
trio .abc .ReceiveChannel ,
31
31
collections .abc .AsyncIterable ,
32
32
collections .abc .Awaitable ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ envlist =
6
6
styleck
7
7
8
8
# While tox does have PEP-517 (pyproject.toml buildapi) support it's very
9
- # inconvinient and slow to use so disable installation of ourselves entirely
9
+ # inconvenient and slow to use so disable installation of ourselves entirely
10
10
skipsdist = true
11
11
12
12
# Keep this in sync with `tool.flit.metadata.requires` from "pyproject.toml"
13
13
#
14
14
# Note the difference in version number strictness is intentional however since
15
- # 0.13.0 fixes an annoying test warining .
15
+ # 0.13.0 fixes an annoying test warning .
16
16
deps =
17
17
trio ~= 0.13.0
18
18
@@ -39,19 +39,15 @@ commands =
39
39
skip_install = true
40
40
deps =
41
41
{[tox]deps}
42
- mypy >= 0.761
43
42
pytest ~= 5.0
43
+ git+https://github.com/alexander255/mypy.git@0cf7515eefd981bd7627a371dd109f1a4cddc90f
44
44
commands =
45
- python {toxinidir}/mypy_run.py --config-file =tox.ini {posargs} -p datastore -p tests
45
+ mypy --config-file =tox.ini {posargs} -p datastore -p tests
46
46
47
47
# Pass down TERM environment variable to allow mypy output to be colorized
48
48
# See: https://github.com/tox-dev/tox/issues/1441
49
49
passenv = TERM
50
50
51
- # HACK: We cannot use mypy's optimized (mypyc) binary distribution as that breaks
52
- # the monkey patching in the `./mypy_run.py` script…
53
- install_command =python -m pip install --no-binary mypy {opts} {packages}
54
-
55
51
[mypy]
56
52
# CLI behaviour
57
53
color_output = true
@@ -78,6 +74,8 @@ warn_unused_ignores = true
78
74
warn_return_any = true
79
75
warn_unreachable = true
80
76
77
+ pep561_override = pytest, trio
78
+
81
79
[mypy-datastore.core.query]
82
80
# FIXME: This file is seriously messed up
83
81
ignore_errors = true
You can’t perform that action at this time.
0 commit comments