TYP: more return annotations in core/
Probably the last big PR related to #47521 There are many more missing return annotations but they should be addressed in smaller PRs (they are either difficult to type or lead to many ignore comments).
Thanks @twoertwein 