gh-112194: Convert more examples to doctests in typing.py
#112195
+43
−31
Merged