Fix issue #27402: example for typing did not type-check. (Merge 3.5->3.6)