Is it possible to use WP_Query to only pull posts with attachments?

From the research I was doing, and from hearing from Kero in the comments, it would appear that querying for posts with attachments via WP_Query isn’t possible in a concise manner.

With that in mind, I changed my podcasting plugin to no longer pull posts with attachments (since that could ultimately be unreliable anyway), and instead save the podcast enclosure data in postmeta. That way, I can use WP_Query and just add a meta_query to the pull.

If you’d like to see the plugin as is, you can find it in this GitHub repo.