bpo-46571: improve typing.no_type_check to skip foreign objects
#31042
+132
−7
typing.no_type_check to skip foreign objects
#31042