Skip to content

Commit 8a1952b

Browse files
Merge pull request #83 from VincentVanlaer/mypy-1.4
Fix for mypy 1.4 changes
2 parents 8c36778 + a7f7798 commit 8a1952b

File tree

17 files changed

+316
-171
lines changed

17 files changed

+316
-171
lines changed

allowlist.txt

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,25 @@ trio.Path.rmdir
157157
trio.Path.stat
158158
trio.Path.unlink
159159

160-
# magic special case function
161-
trio.run_process
162-
163160
# written as a class so you can say open_memory_channel[int](5)
164161
trio.open_memory_channel
162+
163+
# Tests do not get stubs
164+
trio.tests.*
165+
166+
# Ignore internal API
167+
trio._.*
168+
169+
# Deprecated
170+
trio.Process.__aenter__
171+
172+
# attrs
173+
.*_AttrsAttributes__
174+
.*__attrs_own_setattr__
175+
.*__attrs_post_init__
176+
177+
# Probably invalid __match_args__
178+
trio.MemoryReceiveChannel.__match_args__
179+
trio.MemorySendChannel.__match_args__
180+
trio.lowlevel.Task.__match_args__
181+
trio.lowlevel.TrioToken.__match_args__

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -ex -o pipefail
44

55
BLACK_VERSION=22.3
6-
MYPY_VERSION=0.920
6+
MYPY_VERSION=1.4
77

88
pip install -U pip setuptools wheel
99

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"trio >= 0.16.0",
2424
"typing_extensions >= 3.7.4",
2525
"mypy_extensions >= 0.4.2",
26+
"async_generator",
27+
"packaging",
28+
"importlib-metadata",
2629
],
2730
extras_require={
2831
"mypy": [ # can't be installed on PyPy due to its dependency on typed-ast

0 commit comments

Comments
 (0)