Creating attachments archive in tags and categories

The WP_Query documentation on the codex specifically says:

‘attachment’ – an attachment. Whilst the default WP_Query post_status
is ‘publish’, attachments have a default post_status of ‘inherit’.
This means no attachments will be returned unless you also explicitly
set post_status to ‘inherit’ or ‘any’.

I am not sure why it was working before because this is not a recent change but it looks like post_status would have to be ‘inherit’ or ‘any’ rather than null.