pytorch/test/typing
Randolf Scholz 2e9bd03f60 Implemented Size.__radd__ (#152554)
Fixes #144334
Builds on top of #146834 by @khushi-411

The needed trick was to add `PyNumberMethods` because these Number Protocol appears to be responsible for `__radd__` (see https://stackoverflow.com/q/18794169)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/152554
Approved by: https://github.com/albanD

Co-authored-by: Khushi Agrawal <khushiagrawal411@gmail.com>
Co-authored-by: albanD <desmaison.alban@gmail.com>
2025-06-23 15:38:37 +00:00
..
fail typing: allow integer in bitwise operations (#155704) 2025-06-12 22:40:17 +00:00
pass Implemented Size.__radd__ (#152554) 2025-06-23 15:38:37 +00:00
reveal