forked from python-trio/trio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typing for some of the tests (python-trio#2771)
* Add typing for tests `test_channel` had an error, was awaiting a synchronous function * Use `Union` for runtime eval types * More WIP tests * Finish `test_deprecate.py` I think * Work on `test_dtls` * Import `TypeAlias` from typing_extensions if type checking * More work on `test_dtls` and complete `tutil` * Work on `test_asyncgen` * Silence some issues from FakeNet (needs another PR) and other type fixes * Fix return type of `pipe_with_overlapped_read` * Ignore FakeNet typing issues for the moment * Help mypy understand we are in 3.10 * 2nd try fixing mypy missing `contextlib.aclosing` * Use assert instead * Use type var to indicate input is unchanged * Make parameter more specific * Use a version check mypy will understand * Fix missing `Callable` import * Attempt inlining `aclosing` Co-authored-by: TeamSpen210 <spencerb21@live.com> * It's `aclose` not `close` * Suggestions by TeamSpen210 Co-authored-by: TeamSpen210 <spencerb21@live.com> * Ignore incorrect typing for LogCaptureFixture * Type check tests more strictly * Remove type alias for `pytest.WarningsRecorder` * Fix a bunch of mypy errors * Use `Any` for generic `CaptureFixture`'s argument * Ignore `skipif` leaves function untyped error * Use `str` for `CaptureFixture`'s generic and remove skipif ignore --------- Co-authored-by: TeamSpen210 <spencerb21@live.com>
- Loading branch information
1 parent
4a84041
commit be39867
Showing
11 changed files
with
300 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.