Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add support for detecting overloads with overlapping arities (#5163)
This commit addresses TODO 2 from #5119 by adding support for detecting overloads with partially overlapping arities. It also refactors the `is_callable_compatible` method. Specifically, this pull request... 1. Pulls out a lot of the logic for iterating over formal arguments into a helper method in CallableType. 2. Pulls out logic for handling varargs and kwargs outside of loops. 3. Rearranges some of the logic so we can return earlier slightly more frequently.
- Loading branch information
1 parent
595545f
commit 4fe2220
Showing
4 changed files
with
485 additions
and
144 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
Oops, something went wrong.