Make PyObject_FastGetAttrString accept const char* (#59758)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59758
The underlying call to tp_getattr is const safe but CPython
has not fixed it due to BC problems. No reason not to advertise
the better type here though!
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D29017911
Pulled By: ezyang
fbshipit-source-id: 8d55983fe6416c03eb69c6367bcc431c30000133