issue 48855 enable pylint unnecessary-pass
Issue #48855. This PR enables pylint type "W" warning: `unnecessary-pass`.
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Hi. During CI occurs one Error
> intersphinx inventory 'https://docs.scipy.org/doc/scipy/objects.inv' not fetchable due to <class 'requests.exceptions.ConnectionError'>: HTTPSConnectionPool(host='docs.scipy.org', port=443): Max retries exceeded with url: /doc/scipy/objects.inv (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd5800db8e0>: Failed to establish a new connection: [Errno 111] Connection refused'))

It doesn't look related to my changes.