-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use async generator backport only on old python (#154)
* requirements.txt: Conditionalize async_generator on python_version * client.py: Import asynccontextmanager from contextlib on Python >= 3.7 * mypy.ini: Set python_version = 3.9 to match tox.ini * nbclient/client.py: Suppress a mypy error Co-authored-by: David Brochart <david.brochart@gmail.com> Co-authored-by: David Brochart <david.brochart@gmail.com>
- Loading branch information
1 parent
b85aaf3
commit 61fd479
Showing
3 changed files
with
8 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Global options: | ||
|
||
[mypy] | ||
python_version = 3.6 | ||
python_version = 3.9 | ||
|
||
# Per-module options: | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
traitlets>=4.2 | ||
jupyter_client>=6.1.5 | ||
nbformat>=5.0 | ||
async_generator | ||
async_generator; python_version<'3.7' | ||
nest_asyncio |