-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* avoid traversing functions multiple times * condense function cache setup * pass function cache to CombineMapper.__init__ too * use Never instead of None as the function result type for mappers that don't support functions * remove multiple inheritance for TransformMapperWithExtraArgs doesn't appear to be needed * add _verify_is_array to avoid the need for rec_ary the latter inflates recursion depth * remove map_foreign from Mapper * use Never as FunctionResultT for NumpyCodegenMapper and FancyDotWriter too * make PlaceholderSubstitutor explicit about not supporting functions * tweak types in rec/rec_function_definition * use P.args/P.kwargs in CachedWalkMapper * use a more specific type than Any for cache key in CachedWalkMapper * remove some more Anys
- Loading branch information
Showing
18 changed files
with
334 additions
and
198 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
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.