Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@bearytype
+ __call__()
+ __wrapped__
x 6.
This commit is the next in a commit chain generalizing the `@beartype` decorator to support **pseudo-callable wrapper objects** (i.e., objects defining both the `__call__()` and `__wrapped__` dunder attributes), en-route to resolving feature request #368 kindly submitted by @danielward27 (Daniel Ward). Specifically, this commit is the last in a commit subchain generalizing our **argument parser** (i.e., the private `beartype._util.func.arg.utilfuncargiter.iter_func_args()` generator) to transparently parse bound method descriptor parameters by omitting the first mandatory `self` parameter implicitly passed by all bound method descriptors. Frankly, it's best not to think too hard about any of this. (*Eruditely lost on Fhloston Paradise!*)
- Loading branch information
Showing
9 changed files
with
239 additions
and
114 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
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.