This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use nullcontext; remove noop_context_manager
The comment says contextlib.nullcontext requires Python 3.6. The docs https://docs.python.org/3/library/contextlib.html say 3.7, with asynchronous context manager support in 3.10. But AFAICS we only use `nullcontext` in place of a `Scope`, and that only acts as a synchronous context manager.
- Loading branch information
David Robertson
committed
May 27, 2022
1 parent
b8da918
commit e6d193a
Showing
2 changed files
with
7 additions
and
17 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