Use correct signatures for METH_NOARGS. (#45528)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45528
As described in https://github.com/pytorch/pytorch/issues/45419,
resolving a bunch of cpython signature issues.
#Closes: https://github.com/pytorch/pytorch/issues/45419
ghstack-source-id: 113385726
Test Plan: sentinel
Reviewed By: albanD
Differential Revision: D24000626
fbshipit-source-id: d334596f1f0256063691aa044c8fb2face260817