TYP: CallableDynamicDoc
The more tricky parts of #46698.

Adding type annotations to `CallableDynamicDoc` seems to uncover multiple missing type annotations. I'm not very confident in some of the new pyi files (types for cython/c functions).
Hello @twoertwein! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:





There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-05-25 23:36:05 UTC @jbrockmendel Could you have a look at `json.pyi` and `indexing.py`? Thanks @twoertwein 