forked from beartype/beartype
-
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.
Make protocol
__slots__
more type-friendly
See python/mypy#11013 for details, but we may impose downstream heartache on those deriving from our protocols if we don't explicitly set the type of `__slots__` to `Any`. This corrects for my previously botched metaclass TypeVar in accordance with [this recommendation](python/mypy#9282 (comment)).
- Loading branch information
Showing
2 changed files
with
14 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