-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[next]: Extend astype to work with tuples (#1352)
* Extend astype() for tuples * Adapt existing test for arg types of astype() * Adress requested style change * Add extra type check * Use apply_to_primitive_constituents function on (nested) tuples * Adress 'nitpicking' change * Remove previous test and add integration test for casting (nested) tuples * Adapt visit_astype method with recursive func for nested tuples * Fix integration test * Call 'with_altered_scalar_kind' only once * Recursive 'process_elements' func to apply a func on the elts of a tuple * Fix execution tests * Adapt visit_astype for foast.Call and foast.Name * Fix tests * Rename args and refactor 'process_elements' * Fix tests --------- Co-authored-by: Nina Burgdorfer <[email protected]>
- Loading branch information
Showing
5 changed files
with
114 additions
and
12 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