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 *also* corrects for my previously botched metaclass TypeVar in accordance with [this recommendation](python/mypy#9282 (comment)). Could I have included that fix as a separate PR? Yes. Should I have? Yes. Did I? No. `#GottaGoFast` or something the kids say. (Translation: Because I'm lazy.)
- Loading branch information
Showing
2 changed files
with
16 additions
and
21 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