Fix type annotation in CommonsMediaType expert