-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lang] Remove deprecated graph arguments (#8410)
Issue: # ### Brief Summary <!-- copilot:summary --> ### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset) Generated by Copilot at 85f2609</samp> Remove and test deprecated arguments for graph nodes. The pull request removes the `args` and `kwargs` arguments from the `Node` class and its subclasses in `_graph.py`, and raises an error if they are used. It also updates the `test_deprecation.py` file to check for the error instead of a warning. ### Walkthrough <!-- copilot:walkthrough --> ### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset) Generated by Copilot at 85f2609</samp> * Enforce the removal of deprecated arguments for graph nodes by raising `TaichiRuntimeError` instead of `DeprecationWarning` ([link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL109-R112), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL126-R127), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL145-R141), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-3b3dff33121c57d33ae7fd0a1288da627f08baed4cdb4039882cc397a2107c0cL161-R159)) in the `_deprecate_arg_args` function of `python/taichi/graph/_graph.py` * Update the test cases in `tests/python/test_deprecation.py` to expect `TaichiRuntimeError` instead of `DeprecationWarning` for scalar, ndarray, and texture arguments with deprecated arguments ([link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L12-R15), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L22-R25), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L32-R36), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L42-R46), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L58-R61), [link](https://github.com/taichi-dev/taichi/pull/8410/files?diff=unified&w=0#diff-8981be068a363e39524dc2e29d28d4c13a097d0037fc3a1176b249ce5bf35ef8L68-R71)) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jim19930609 <[email protected]>
- Loading branch information
1 parent
c8ef774
commit bfa7d10
Showing
4 changed files
with
48 additions
and
74 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