-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PEP (484|585) async? generator constraints relaxed.
This commit relaxes prior constraints erroneously imposed by `@beartype` prohibiting both asynchronous and synchronous generator callables from being annotated as returning unsubscripted standard abstract base classes defined by the `collections.abc` module. Specifically, this commit now permits: * Asynchronous generator callables to be annotated as returning `collections.abc.AsyncGenerator`. * Synchronous generator callables to be annotated as returning `collections.abc.Generator`. (*Troubling troubadours!*)
- Loading branch information
Showing
2 changed files
with
106 additions
and
18 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
Oops, something went wrong.