text: Title: Update type(...) to import the Type from it's canonical location
  Body: I missed that in the previous PR but those should likely be :
  
  ```
  from types import MethodDescriptorType
  from types import ModuleType
  ```
  
  
  
  _Originally posted by @Carreau in https://github.com/ipython/ipython/pull/14029#discussion_r1180062854_
              