Skip to content

Commit

Permalink
Merge pull request #83 from VincentVanlaer/mypy-1.4
Browse files Browse the repository at this point in the history
Fix for mypy 1.4 changes
  • Loading branch information
VincentVanlaer committed Aug 2, 2023
2 parents 8c36778 + a7f7798 commit 8a1952b
Show file tree
Hide file tree
Showing 17 changed files with 316 additions and 171 deletions.
23 changes: 20 additions & 3 deletions allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,25 @@ trio.Path.rmdir
trio.Path.stat
trio.Path.unlink

# magic special case function
trio.run_process

# written as a class so you can say open_memory_channel[int](5)
trio.open_memory_channel

# Tests do not get stubs
trio.tests.*

# Ignore internal API
trio._.*

# Deprecated
trio.Process.__aenter__

# attrs
.*_AttrsAttributes__
.*__attrs_own_setattr__
.*__attrs_post_init__

# Probably invalid __match_args__
trio.MemoryReceiveChannel.__match_args__
trio.MemorySendChannel.__match_args__
trio.lowlevel.Task.__match_args__
trio.lowlevel.TrioToken.__match_args__
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex -o pipefail

BLACK_VERSION=22.3
MYPY_VERSION=0.920
MYPY_VERSION=1.4

pip install -U pip setuptools wheel

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"trio >= 0.16.0",
"typing_extensions >= 3.7.4",
"mypy_extensions >= 0.4.2",
"async_generator",
"packaging",
"importlib-metadata",
],
extras_require={
"mypy": [ # can't be installed on PyPy due to its dependency on typed-ast
Expand Down
Loading

0 comments on commit 8a1952b

Please sign in to comment.