Put backticks around `~astropy.wcs.WCS` and add a tilde ... then a link will be generated in the html docs.